[image-1] Former South Carolina Gov. Nikki Haley, who was chosen for the country’s top post in the United Nations by President Donald Trump shortly after his election in November 2016, has said she will resign from the job.

The news was first reported by The New York Times. AP reports that she will step away from the administration at the end of 2018.

Though Haley was an early critic of President Trump during the Republican primaries, she has taken to strongly defending him during her time working for his administration even as some have been skeptical of her political ambition.

After the Times broke that Deputy Attorney General Rod Rosenstein had privately discussed invoking the 25th Amendment to remove Trump from office, Haley blamed the media and stood by Trump’s work as president.

“It’s gotten so disgusting, really,” Haley said in an appearance on Fox & Friends. “The idea that he’s not mentally fit. The idea that we’d be talking about the 25th Amendment. None of that is true — it couldn’t be farther from the truth. You’ve got a president who is nonstop going all the time. The Cabinet is just trying to keep up with him.”

Born in 1972 to Indian parents in Bamberg, S.C., Haley was first elected governor on Nov. 2, 2010. She was re-elected on Nov. 4, 2014.

Considered a “moderate” Republican, she called for the removal of the Confederate battle flag from the Statehouse grounds after the June 2015 Mother Emanuel shooting.

Democrats and health care advocates often criticize her refusal to expand Medicaid in South Carolina through the Affordable Care Act during her time in the governor’s mansion.

“Ambassador Haley has done an outstanding job as United States Ambassador to the United Nations and showed a level of effectiveness rarely seen by someone in this position,” said Sen. Lindsey Graham of South Carolina in a statement after the news broke Tuesday morning.