The ongoing Shakespearean drama that is Donald Trump’s White House has taken another twist, after the President announced he was replacing his chief of staff Reince Priebus.

As has become his habit, Mr Trump announced the news on Twitter, saying that the position was to be filled by former general John Kelly, the man who is currently the Secretary of the Department of Homeland Security. It emerged that Mr Priebus, 45, had offered his resignation the day before, following a public spat with Mr Trump's new Director of Communications, Anthony Scaramucci.

“I am pleased to inform you that I have just named General/Secretary John F Kelly as White House Chief of Staff. He is a Great American and a Great Leader. John has also done a spectacular job at Homeland Security. He has been a true star of my Administration,” Mr Trump said on Twitter.

“I would like to thank Reince Priebus for his service and dedication to his country. We accomplished a lot together and I am proud of him.”

After Mr Trump had broken the news on social media - apparently as he was flying back from an appearance on New York's Long Island where he was accompanied by Mr Priebus - he spoke briefing with travelling reporters. “Reince is a good man. John Kelly will do a fantastic job,“ he said. ”General Kelly has been a star, done an incredible job thus far, respected by everybody. He's a great great American. Reince is a good man.”

In truth, Mr Trump had long been suspicious and disappointed with Mr Priebus, and there had been speculation about him being ousted almost since he took the job earlier this year - having moved over from the Republican National Committee where he was chairman.

The controversial orders Donald Trump has already issued Show all 9 1 /9 The controversial orders Donald Trump has already issued The controversial orders Donald Trump has already issued Trump and the media White House Press Secretary Sean Spicer takes questions during the daily press briefing Getty Images The controversial orders Donald Trump has already issued Trump and the Trans-Pacific Partnership Union leaders applaud US President Donald Trump for signing an executive order withdrawing the US from the Trans-Pacific Partnership negotiations during a meeting in the Roosevelt Room of the White House in Washington DC. Mr Trump issued a presidential memorandum in January announcing that the US would withdraw from the trade deal Getty The controversial orders Donald Trump has already issued Trump and the Mexico wall A US Border Patrol vehicle sits waiting for illegal immigrants at a fence opening near the US-Mexico border near McAllen, Texas. The number of incoming immigrants has surged ahead of the upcoming Presidential inauguration of Donald Trump, who has pledged to build a wall along the US-Mexico border. A signature campaign promise, Mr Trump outlined his intention to build a border wall on the US-Mexico border days after taking office Getty Images The controversial orders Donald Trump has already issued Trump and abortion US President Donald Trump signs an executive order as Chief of Staff Reince Priebus looks on in the Oval Office of the White House. Mr Trump reinstated a ban on American financial aide being granted to non-governmental organizations that provide abortion counseling, provide abortion referrals, or advocate for abortion access outside of the United States Getty Images The controversial orders Donald Trump has already issued Trump and the Dakota Access pipeline Opponents of the Keystone XL and Dakota Access pipelines hold a rally as they protest US President Donald Trump's executive orders advancing their construction, at Columbus Circle in New York. US President Donald Trump signed executive orders reviving the construction of two controversial oil pipelines, but said the projects would be subject to renegotiation Getty Images The controversial orders Donald Trump has already issued Trump and 'Obamacare' Nancy Pelosi who is the minority leader of the House of Representatives speaks beside House Democrats at an event to protect the Affordable Care Act in Los Angeles, California. US President Donald Trump's effort to make good on his campaign promise to repeal and replace the healthcare law failed when Republicans failed to get enough votes. Mr Trump has promised to revisit the matter Getty Images The controversial orders Donald Trump has already issued Donald Trump and 'sanctuary cities' US President Donald Trump signed an executive order in January threatening to pull funding for so-called "sanctuary cities" if they do not comply with federal immigration law AP The controversial orders Donald Trump has already issued Trump and the travel ban US President Donald Trump has attempted twice to restrict travel into the United States from several predominantly Muslim countries. The first attempt, in February, was met with swift opposition from protesters who flocked to airports around the country. That travel ban was later blocked by the Ninth Circuit Court of Appeals. The second ban was blocked by a federal judge a day before it was scheduled to be implemented in mid-March SANDY HUFFAKER/AFP/Getty Images The controversial orders Donald Trump has already issued Trump and climate change US President Donald Trump sought to dismantle several of his predecessor's actions on climate change in March. His order instructed the Environmental Protection Agency to reevaluate the Clean Power Plan, which would cap power plant emissions Shannon Stapleton/Reuters

There are turf wars in every White House, with different factions seeking leverage and advantage. Yet Mr Trump appears to have actively encouraged such chaos and competitiveness within his administration - believing that such a system had worked for him in business. Indeed, in the six months that Mr Trump has occupied the Oval Office, various figures have seen their fortunes rise and fall, among them advisor Steve Bannon, Jeff Sessions, and Mr Priebus himself.

But while many were expecting that Mr Sessions would resign as Mr Trump continued to criticise his decision to recuse himself from the investigation into Russia, in the last 24 hours it emerged that Mr Priebus had become very vulnerable.

Scaramucci: Trump sinks 3-foot putts. Official transcript: Trump sinks 30-foot putts

On Thursday night, in a bizarre interview with New Yorker reporter Ryan Lizza, Anthony Scaramucci, Mr Trump’s new Director of Communications, said that Mr Priebus would not last much longer.

At one point during the call, Mr Scaramucci called Mr Priebus a “f***ing paranoid schizophrenic”. He also accused Mr Priebus of being behind the flow of damaging leaks about the White House and said he was going to ask the FBI to investigate him.

That interview was not published until Thursday. In the intervening hours, Mr Scaramucci sought to suggest he and Mr Priebus were like brothers.

“When I said we were brothers from the podium, that’s because we're rough on each other - some brothers are like Cain and Abel,” he said to CNN, referencing a biblical passage that ends in Cain killing Abel. “Other brothers can fight with each other and then get along. I don’t know if this is repairable or not. That will be up to the president.”

The enmity between Mr Scaramucci and Mr goes back some time. Mr Scaramucci was to to have taken up a senior White House role in January but he was blocked by the chief-of-staff.

When he did arrive in the West Wing last week - against the advice given to Mr Trump by Mr Priebus and spokesman Sean Spicer, who subsequently quit - it was noted that the brash New Yorker was to report directly to Mr Trump and not Mr Priebus, as would normally have been the case for a communications director.

On Thursday, Mr Spicer's replacement in the White House briefing room, Sarah Huckabee Sanders, would not say whether Mr Priebus still have the confidence of the President. As it is, Mr Kelly will start in his new job on Monday morning. There was no immediate news on who would replace Mr Kelly.

Before the news was announced, Mr Trump had praised Mr Kelly, a former four star general who served three tours in Iraq, during a speech in New York’s Long Island where he was talking about the fight against gang crime.

“I want to congratulate John Kelly, who has done an incredible job of Secretary of Homeland Security,“ he said. ”Incredible. One of our real stars. Truly, one of our stars. John Kelly is one of our great stars.“

Mr Priebus insisted he had resigned, and had not been fired.

“The President wanted to go in a different direction,” Priebus told CNN.

“I think General Kelly is a brilliant pick. We'll be working on a transition here for a couple weeks together with General Kelly starting on Monday morning.