What is the Job of the Attorney General?

An attorney general is the head lawyer in a state, he or she protects the rights of the citizens in that state, they are a states cheif lawyer.