WASHINGTON (AP) — The tenure of Reince Priebus as White House chief of staff has ended after six months.

President Donald Trump announced via Twitter on Friday that he's replacing the former Republican Party chairman with the secretary of homeland security, John Kelly.

Priebus says he offered his resignation after Trump indicated he wanted to go in a different direction.

Kelly is a retired Marine Corps general and could bring military-style discipline to a White House undercut by insider quarrels.

President Donald Trump tweets he is naming Homeland Security Secretary John Kelly as chief of staff, ousting Reince Priebus. (July 28)

Priebus had been a frequent target of rumors about his job security amid infighting and confusion within the White House and a long whisper campaign by Trump allies. Then, on Thursday, he was assailed in a remarkable and profane public rebuke by Trump's newly appointed White House communications director, Anthony Scaramucci.