President Donald Trump confirmed that Chief of Staff John Kelly will leave his post by the end of the year.

Trump said that he would announce Kelly's replacement in the near future.

Kelly, a former general, was hired to reign in Trump's freewheeling White House instead of Reince Priebus, and quickly made his mark, pushing out former aides Steve Bannon and Anthony Scaramucci. Reports going back as far as October 2017 spoke of a split between Kelly and Trump, and said that Kelly would soon depart the White House.

Kelly has reportedly made it more difficult for people inside and outside the White House to gain access to Trump, but the president has bristled at those constraints and Kelly has angered some influential Trump loyalists.

Kelly also found himself embroiled in his own controversy last year over his handling of spousal abuse allegations against former White House staff secretary Rob Porter.

Those dynamics caused friction with the president, who has reportedly been sounding out possible replacements for Kelly for months.