in most common law jurisdictions, the attorney general or attorney-general (sometimes abbreviated ag) is the main legal advisor to the government. the plural is attorneys general or attorneys-general..
in some jurisdictions, attorneys general also have executive responsibility for law enforcement, prosecutions or even responsibility for legal affairs generally. in practice, the extent to which the attorney general personally provides legal advice to the government varies between jurisdictions, and even between individual office-holders within the same jurisdiction, often depending on the level and nature of the office-holder's prior legal experience.
where the attorney general has ministerial responsibility for legal affairs in general (as is the case, for example, with the united states attorney general or the attorney-general for australia, and the respective attorneys general of the states in each country), the ministerial portfolio is largely equivalent to that of a minister of justice in some other countries.
the term was originally used to refer to any person who holds a general power of attorney to represent a principal in all matters. in the common law tradition, anyone who represents the state, especially in criminal prosecutions, is such an attorney. although a government may designate some official as the permanent attorney general, anyone who came to represent the state in the same way could, in the past, be referred to as such, even if only for a particular case. today, however, in most jurisdictions, the term is largely reserved as a title of the permanently appointed attorney general of the state, sovereign or other member of the royal family.
civil law jurisdictions have similar offices, which may be variously called "public prosecutor general", "procurators", "advocates general", "public attorneys", and other titles. many of these offices also use "attorney general" or "attorney-general" as the english translation of the title, although because of different historical provenance, the nature of such offices is usually different from that of attorneys-general in common law jurisdictions.