Katherine "Scottie" MacGregor, best known for her role as Harriet Oleson on "Little House on the Prairie," died Tuesday in Woodland Hills, California, her representative confirmed to NBC News. She was 93.

MacGregor played the gossipy, mean-spirited Harriet Oleson for 153 episodes of the popular 1970s series. On the show, she and her daughter Nellie (Alison Arngrim) served as the sour foils to the wholesome Ingalls, including Pa (Michael Landon) and Laura (Melissa Gilbert).

Alison Arngrim (Nellie) and Katherine "Scottie" MacGregor (Harriet) were a perfect mother-daughter duo on "Little House on the Prairie." Getty Images

Born Dorlee Deane MacGregor in 1925 in Glendale, California, MacGregor grew up in Colorado and changed her name to "Scottie" after relocating to New York, where she received applause for her theatrical roles. She moved to California and appeared in 1954's "On the Waterfront" in an uncredited role, then began to work in television on shows like "Ironside," "Emergency!" and "Mannix."

"It was a rude awakening coming to Hollywood," she told the Santa Cruz Sentinel in 1981, according to the "Little House on the Prairie" official website. "I was used to doing juicy parts on the stage ... They didn’t know what to do with me."

The Olesons were among the town of Walnut Grove's more wealthy residents. Getty Images

Then came the role that would define her career.

"I was getting ready to go back to New York and my agent called and said, 'Could you go see somebody this afternoon?'" the official website reports. "And I said, 'Who did you say I'm supposed to meet?' She said, 'Michael Landon.' And I said, 'Well, who's he?'"

The role of Mrs. Oleson (who contrasted with her more mild-mannered husband Nels, played by Richard Bull) made her famous, though she told the Santa Cruz Sentinel that she looked for ways to make her more than just "black-and-white mean."

MacGregor was yin to Richard Bull's (Nels) yang on "Little House." Getty Images

"Anyone that mean has to be a fool," she said. "So I began mixing farce into it."

Ultimately, she was unable to film the final episode in the series in 1983; she was on pilgrimage in India at the time, focusing on her Hindu faith.

Her co-star Melissa Gilbert posted on Instagram about MacGregor's passing, noting: "The thing people outside of our prairie family didn’t know, was how loving and nurturing she was with the younger cast."

Alison Arngrim also paid tribute to MacGregor on Instagram. "Long live our beautiful Harriet. Long live the immortal Katherine MacGregor!" she wrote.

MacGregor was married twice for brief times; she wed Edward G. Kaye-Martin in 1969, and divorced him the following year. She was also married to actor Bert Remsen in 1949.

She had been living at the Motion Picture Fund Long Term Nursing Care facility in Woodland Hills, California, when she died. One of her fellow residents had been Bull; when he died in 2014, she had lunch with his widow, Barbara Collentine. "Little House" actor Dean Butler said that afterward, MacGregor reported "they both had lost a wonderful husband."

Editor's note: This article originally stated that actor Richard Bull died in 1999. He passed away in 2014.