MONTGOMERY, Ala. (WIAT) — Former Alabama House Speaker Mike Hubbard was released from prison Sunday after serving more than two years behind bars, according to the Alabama Department of Corrections.

Hubbard was sentenced to 28 months in prison after a jury convicted him of violating state ethics law. He served his sentence at Limestone Correctional Facility.

Hubbard was one of the state’s most powerful politicians until the ethics conviction ended his political career.

Prosecutors accused Hubbard of leveraging his powerful public office to obtain clients for his businesses, violating the prohibitions against using his office for personal gain and on giving a “thing of value” to an elected official.

At his trial, his defense maintained the contracts were legitimate work and unrelated to his position as House speaker. In upholding the conviction, members of the Alabama Supreme Court noted that when contacting a company for one client, Hubbard “identified himself as a state legislator and as Speaker of the House of Representatives.” They also noted how one company executive wrote in an email that Hubbard could get the company, “in front of any speaker in the country regardless of party.”

A jury in 2016 convicted Hubbard of 12 charges, but half of those were overturned on appeal.

Hubbard had unsuccessfully sought an early release from prison.