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 resigned from his House seat last week after Trump nominated him to become attorney general.
It is unclear whom Trump will nominate in his place.
The allegations stem, in part, from a woman's claims that she attended a 2017 party with him and witnessed the then-congressman having sex with a minor.
The woman's lawyer later said that the woman, as well as another witness, were paid by Gaetz to have sex with him.
A separate three-year federal sex trafficking investigation into Gaetz ended with no charges brought against him.
What's next for Matt Gaetz?
It is unclear what will come next for Gaetz, who provided no detail on his future plans in his announcement.
President-Elect Trump said only that he has a "wonderful future" and will do "great things".
Experts have suggested that it unlikely that Gaetz would try to return to the House—where he was re-elected to his seat in the November election - as it would mean that the Ethics Committee report could be made public.
Senior Republicans, including House Speaker Mike Johnson, have used his resignation as justification to avoid publishing the committee's findings.
But he could return to the Capitol in the upper chamber.
Florida's Governor, Ron DeSantis, could appoint him to a vacant seat that is likely to be left by Senator Marco Rubio, whom Trump has nominated as his secretary of state.