(CNN) โ€” Georgia GOP Rep. Marjorie Taylor Greene announced on Friday that she will be resigning from office in January, stunning some in her own party after a shocking, monthslong political pivot that catapulted her from one of President Donald Trumpโ€™s closest allies to one of his top antagonists.

Greene dropped the news in aย post on social mediaย just days after her public falling out with Trump, who called her a โ€œtraitorโ€ and said heโ€™d support a GOP challenge to her House seat next year.

In her statement, Greene said she wanted to avoid a nasty primary โ€” while predicting that the GOP would lose its House majority in the midterms.

โ€œI have too much self-respect and dignity, love my family way too much, and do not want my sweet district to have to endure a hurtful and hateful primary against me by the President we all fought for, only to fight and win my election while Republicans will likely lose the midterms,โ€ Greene said in a statement.

The decision to step down will cap a turbulent five-year career in Washington, during which Greene was publicly condemned for violent rhetoric on the House floor andย bootedย from the hard-right Freedom Caucus over a feud with a fellow Republican โ€” while wielding extraordinary influence in her party as one of Trumpโ€™s most trusted political allies on Capitol Hill.

In the days since Trumpโ€™s โ€œtraitorโ€ comments, Greene faced direct threats against her life, the congresswomanย said in an interview with CNN. In the same interview, the conservative firebrand apologized for her own years of โ€œtoxicโ€ rhetoric โ€” comments that reverberated around the country amid an increasingly violent political culture.

Greene had been contemplating her resignation for over a week, according to a person close to her, as the threats against her continued to escalate amid her falling out with the president.

Her next steps remain unclear. But the Georgia congresswoman, who just months earlier had been discussed as a potential candidate for her stateโ€™s high-stakes Senate race, currently has no plans to run for any office, the person added.

CNN has reached out to the White House for comment.

In recent weeks, Greene criticized the president for being too focused on foreign policy and not doing enough with his domestic agenda at home โ€” going as far as to side with Democrats over the contentious issue of costly enhanced Affordable Care Act subsidies that expire next month.

Greene also became one of the White Houseโ€™s most vocal critics of the Justice Departmentโ€™s handling of the Jeffrey Epstein case files. She and fellow Republican Rep. Thomas Massie accused the White House of attempting to conceal details of the files. Following fierce resistance, Trump ultimately signed an Epstein transparency measure into law earlier this week.

โ€œIโ€™m very sad for our country but so happy for my friend Marjorie. Iโ€™ll miss her tremendously. She embodies what a true Representative should be,โ€ Massie wrote on X, shortly after Greeneโ€™s announcement.

Greeneโ€™s exit is likely to be quickly felt in the House, where Speaker Mike Johnson must navigate a razor-thin majority. The Republican leader already faces the tall order in the new year of corralling his fractious conference to move on major legislation and further the presidentโ€™s priorities.

First elected in 2020, the Georgia congresswoman was known for vocally touting conspiracy theories and for her incendiary rhetoric, including prior remarks endorsing violence against Democrats in Congress.

Her first year in office, a Democratic-led House under then-Speaker Nancy Pelosi took the extraordinary step ofย stripping Greene of her committee assignmentsย because of her past rhetoric endorsing violence and claims the deadly Sandy Hook and Parkland school shootings had been staged.

In a sign of Greeneโ€™s recent political turnaround, the Georgia congresswoman praised Pelosiโ€™s leadership in an interview with CNN, saying of the longtime Democrat, โ€œShe had an incredible career for her party. โ€ฆ I served under her speakership in my first term of Congress, and Iโ€™m very impressed at her ability to get things done.โ€

This story has been updated with additional details.