Attorney general
An attorney general is the main legal advisor for governments. In some areas, he or she might be also in charge of law enforcement and public prosecutions.
In United Kingdom, attorneys general are called Law Officers of the Crown.