Nikki Haley resigns as UN ambassador, will leave at end of the year, Trump says

She has been the UN ambassador since January 2017.

During a meeting in the Oval Office on Tuesday, Trump said that while he is sorry to see Haley go, she had told him in advance that she wanted to take a break after having served for two years helping advance the administration's foreign policy agenda. Haley also reportedly told her staff that she intended to resign, according to one State Department source.

“She’s done a fantastic job and we’ve done a fantastic job together,” Trump said during the meeting with the outgoing ambassador on Tuesday. “We’re all happy for you in one way, but we hate to lose you.”

Haley pointed to accomplishments over the past two years ranging from talks with North Korea about denuclearization, improving dialogue with Russia, moving the U.S. embassy to Jerusalem, and taking a harder line with Iran. She added that she relished going into meetings with foreign leaders with "body armor every day to defend America."

"It has been an honor of a lifetime," Haley said. "Now the United States is respected. Countries might not like what we do, but they respect what we do. Now if we say we're going to do something, we follow through...whether it's the chemical weapons in Syria, whether it's with NATO and other countries have to pay their share, whether it's the trade deals, which has been amazing. They get that the president means business and we follow through with that."

Haley's departure brings her career with the Trump administration on the world stage full circle.

In the Republican response to the 2016 State of the Union address, she urged members of her party to resist following the “angriest voices,” which was seen as a subtle jab at Trump, even though she didn’t refer to him by name.

In December, she famously told countries critical of America's decision to move the U.S. embassy to Jerusalem that “the US will be taking names” of countries who vote in favor of a U.N. resolution criticizing the move.

By the time of her last high-profile appearance at the United Nations General Assembly in September, when she appeared alongside President Trump, she had earned a reputation among world leaders as a someone who would promote American foreign policy but also serve as a moderating voice in the room.

Haley has been the UN ambassador since January 2017. Prior to that, she served as the Governor of South Carolina – a role she became famous for when she called for the Confederate battle flag to be removed from the State House in the wake of the deadly shooting in a historic African American church in Charleston.

Long rumored as a potential presidential candidate, Haley shot down that speculation and said she planned to campaign for the president during his re-election effort. She echoed that pledge in her resignation letter, a missive which was dated Oct. 3, and which ABC News has obtained.

"I will once again become a private citizen," Haley wrote of her life after her U.N. post tenure ends. "I expect to continue to speak out from time to time on important public policy matters, but I will surely not be a candidate for any office in 2020. As a private citizen, I look forward to supporting your re-election as President and supporting the policies that will continue to move our great country toward even greater heights."

With Haley's resignation, she joins the list of Trump administration officials to leave after less than two years in office.