US Attorney General Jeff Sessions has been fired by President Donald Trump.
Mr Trump had criticised his top law official for months, mainly over his refusal to oversee the investigation into alleged Russian meddling in favour of Mr Trump’s election in 2016.
Mr Sessions’s chief of staff, Matthew Whitaker, who has criticised the inquiry, will take over temporarily.
Special Counsel Robert Mueller is investigating alleged collusion between the Trump campaign and Russia.
Mr Mueller’s wide-ranging investigation has resulted in a series of criminal charges against several Trump associates.
In a resignation letter, Mr Sessions – a former Alabama senator who was an early supporter of Mr Trump – made clear the decision to go was not his own.
“Dear Mr President, at your request I am submitting my resignation,” he wrote in an undated letter.
“Most importantly, in my time as attorney general, we have restored and upheld the rule of law,” Mr Sessions added, while thanking the Republican president.
“We thank Attorney General Jeff Sessions for his service, and wish him well!” Mr Trump tweeted on Wednesday.
“Clearly, the president has something to hide,” opposition Democratic party Senate leader Chuck Schumer said.
“Given his previous comments advocating defunding and imposing limitations on the Mueller investigation, Mr Whitaker should recuse himself from its oversight for the duration of his time as acting attorney general.”
Mr Trump has repeatedly pilloried his top law enforcement official since Mr Sessions stepped aside from the Russia inquiry in March 2017.
In July 2017 Mr Trump told the New York Times: “Sessions should have never recused himself, and if he was going to recuse himself, he should have told me before he took the job and I would have picked somebody else.”
Mr Sessions voluntarily removed himself from the probe after Democrats accused him of failing to disclose contacts with the Russian ambassador during his Senate confirmation hearing.
The attorney general later said he had forgotten about those meetings, which happened during the Trump election campaign.
Mr Trump has at various times belittled Mr Sessions as “VERY weak” and “DISGRACEFUL”.
Matthew Whitaker can now assume control of the Mueller inquiry, which has been under the control of Deputy Attorney General Rod Rosenstein until now.
The president cannot directly fire the special counsel, whose investigation Mr Trump has repeatedly decried as a witch hunt. But Mr Sessions’s replacement will have the power to fire Mr Mueller or end the inquiry.
Mr Rosenstein was summoned to the White House on Wednesday for what was described as a previously scheduled meeting.
It was the deputy attorney general who appointed Mr Mueller to lead the Russia inquiry, after Mr Trump fired FBI director James Comey in May 2017.
The special counsel’s probe has also been investigating whether Mr Comey’s firing amounted to attempted obstruction of justice.
There has also been a question mark over Mr Rosenstein’s future since it was reported he had discussed invoking a constitutional clause to oust President Trump.