What is the meaning of Attorney_general?

The chief legal advisor to the government, overseeing legal affairs and ensuring that laws are uniformly and justly applied.

Source: wiktionary.org