Former Florida Congressman Matt Gaetz has withdrawn his name from consideration to become attorney general after days of debate over whether to release a congressional report on sexual misconduct allegations against him.
On X, formerly Twitter, the 42-year-old said that the controversy over his potential nomination "was unfairly becoming a distraction" to the work of the incoming Trump administration.
The report included the findings of a probe sparked by allegations of sexual misconduct and illicit drug use.
Gaetz has denied the claims but said that he hoped to avoid a "needlessly protracted Washington scuffle."
The withdrawal of Gaetz - who Donald Trump selected to be the top US law enforcement officer - represents a setback for the president-elect.
On his own Truth Social social media platform, the former and soon-to-be president said he appreciated Gaetz’s effort to become attorney general.
“He was doing very well, but at the same time, did not want to be a distraction for the administration, for which he has much respect,” Trump added.
In his post on X, formerly Twitter, Gaetz said that Trump's justice department "must be in place and ready" on the first day of his administration in January.
"I remain fully committed to see that Donald J Trump is the most successful president in history," he wrote.
"I will forever be honoured that President Trump nominated me to lead the Department of Justice and I'm certain he will save America," Gaetz added.
The shadow cast by the long-running investigation by a congressional ethics panel into a number of claims involving drugs, bribes and sex meant that Gaetz was likely to face an uphill battle when it came time to be confirmed by the US Senate.
Lawmakers - including some fellow Senate Republicans - had expressed concern about his nomination, reportedly prompting a significant closed-door effort by him and Trump to secure the necessary support.
The day before his withdrawal, the House Ethics Committee - which compiled the report - met behind closed doors to debate whether or not it should release the report into Gaetz.
The committee's chair, Democrat Susan Wild, said that the group had not been able to come to an agreement and was evenly divided, 5-5, on party lines.
Gaetz had withdrawn from the House last week after Trump nominated to become Attorney General.
It is unclear whom Trump will nominate in his place.