FILE PHOTO: Republican presidential nominee Trump holds a rally in Coachella

Former U.S. Rep. Matt Gaetz, R-Fla., speaks during a rally for former President Donald Trump in Coachella, California, last month. Gaetz withdrew his name from consideration Thursday as Trump’s attorney general.

WASHINGTON — Hardline Republican Matt Gaetz withdrew his name from consideration as President-elect Donald Trump’s attorney general after the former lawmaker faced opposition from Senate Republicans over his past conduct.

Gaetz, who resigned from the House of Representatives last week, was the subject of an Ethics Committee probe into allegations of having sex with an underage 17-year-old girl. He has denied wrongdoing.