Answer
U.S. Attorney General Alberto Gonzales served as the chief legal officer of the United States from 2005 to 2007. He was responsible for overseeing the Department of Justice, which enforces federal laws, provides legal advice to the President and other government agencies, and represents the United States in court.