Roseanne Barr is apologizing for tweeting a racially charged "bad joke" about Valerie Jarrett, saying she's leaving Twitter.

The star of ABC's "Roseanne" tweeted on Tuesday:

ADVERTISEMENT

The apology came after Barr incited a social media firestorm earlier Tuesday for the attack on Jarrett, an Obama-era White House adviser.

In the since-deleted tweet, Barr said Jarrett was a child of the Islamist organization Muslim Brotherhood and the movie "Planet of the Apes."

“Muslim brotherhood & planet of the apes had a baby=vj,” Barr wrote, using Jarrett's initials. The message was in response to a tweet accusing Jarrett of helping to "hide" misdeeds for the Obama administration.

An ABC spokeswoman didn't immediately return ITK's request for comment about Barr's tweet.

The reboot of "Roseanne," which stars Barr, 65, as a President TrumpDonald John TrumpCorker: US must determine responsibility in Saudi journalist's death Five takeaways from testy Heller-Rosen debate in Nevada Dem senator calls for US action after 'preposterous' Saudi explanation MORE supporter politically at odds with the rest of her family, scored record ratings for ABC when it debuted in March.

Trump called to congratulate Barr, who in real life has also expressed support for the commander in chief, for the ratings win following the premiere.

“The idea that people can agree to disagree is kind of missing from everything,” Barr said in an interview in March.

“I really hope that it opens up civil conversation between people,” Barr, who made a 2012 White House bid as the Peace and Freedom Party's candidate, added, “instead of just mudslinging.”