Texas Gov. Rick Perry has been indicted for abuse of power after carrying out a threat to veto funding for state public corruption prosecutors.

The Republican governor’s accused of abusing his official powers by publicly promising to veto $7.5 million for the state public integrity unit at the Travis County District Attorney’s office. He was indicted by an Austin grand jury Friday on felony counts of abuse of official capacity and coercion of a public servant. Maximum punishment on the first charge is five to 99 years in prison. The second is two to 10 years.

Perry said he’d veto the funding if the district attorney, Rosemary Lehmberg, didn’t resign. Lehmberg had recently been convicted of drunken driving. When Lehmberg refused, Perry carried out his veto.