The primary duties of state attorneys general include representing state governments in legal actions and protecting the public through criminal and civil litigation. They are also empowered to issue opinions to guide the legal actions of public agencies. Typically, attorneys general are chosen by voters in statewide elections.