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:

I apologize. I am now leaving Twitter. — Roseanne Barr (@therealroseanne) May 29, 2018

I apologize to Valerie Jarrett and to all Americans. I am truly sorry for making a bad joke about her politics and her looks. I should have known better. Forgive me-my joke was in bad taste. — Roseanne Barr (@therealroseanne) May 29, 2018

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 Trump Donald John TrumpOmar fires back at Trump over rally remarks: 'This is my country' Pelosi: Trump hurrying to fill SCOTUS seat so he can repeal ObamaCare Trump mocks Biden appearance, mask use ahead of first debate 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.”