SAN FRANCISCO—Former state senator Leland Yee admitted to charges of racketeering and accepted a plea deal with federal prosecutors on Wednesday, July 1 at a federal courthouse in San Francisco.

Yee was set to go to trial next month on charges of political corruption, money laundering and gun running.

The San Francisco based politician, who previously served on the San Francisco Board of Supervisors and the state assembly, was one of dozens arrested last spring as part of a lengthy FBI sting operation.

“Today’s news turns the page on one of the darker chapters of the Senate’s history,” California State Senate President Pro Tem Kevin de León said in a statement.

Yee was indicted in March 2014 on charges of offering to arrange the sale of assault weapons to an undercover FBI agent posing as a mob figure as well as accepting $62,000 in campaign contributions in return for legislative favors.

Prosecutors told the court that Yee’s sentence could include $250,000 in fines. At least $33,000 in assets will be seized.

Yee faces up to 20 years in federal prison. U.S. District Judge Charles Breyer is scheduled to sentence Yee on October 21.

Among the awards Yee has received over his political career include the California Legislator of the Year by San Francisco Women’s Political Committee, Modern Day Abolitionist Award by the San Francisco Collaborative Against Human Trafficking and the Beacon Award from the First Amendment Coalition.