LOS ANGELES (AP) — Michael Avenatti was a successful if little-known litigation attorney until he became a household name by representing the porn actress who sued President Donald Trump.

After Stormy Daniels said she had sex with Trump in 2006 and was paid to keep quiet about it, her brash, trash-talking attorney was suddenly everywhere. Trump denied the allegation.

Avenatti appeared repeatedly on cable TV to ridicule Trump and his supporters, traveled the country promoting various causes and even flirted with his own presidential bid.

Anti-Trump forces embraced him as someone who could match the president insult for insult.

Now, Avenatti has been arrested on extortion and fraud charges involving millions of dollars. If convicted, he could spend the rest of his life in prison. He says he’s innocent.