Michael Cohen, President Donald Trump’s former personal lawyer, was sentenced to three years in prison and millions in forfeitures, restitution and fines by U.S. District Judge William Pauley III of the Southern District of New York on Wednesday.

The sentence was handed down after Cohen made a series of guilty pleas. Special Counsel Robert Mueller’s office prosecuted Cohen for lying to Congress, and the Southern District of New York U.S. Attorney’s Office prosecuted him for campaign finance violations, tax fraud and other charges.