The Attorney General’s Office represents and provides legal advice to most state agencies; defends challenges to the validity of state laws; enforces civil law, including consumer protection and environmental laws; defends the State’s interest in civil actions, including bankruptcies, workers’ compensation claims, professional licensing cases, and habeas corpus actions filed by state and federal inmates; and serves as a special prosecutor in criminal cases when appointed. In addition, the Office handles all appeals statewide from felony convictions.