Created in 1789, the Office of the Attorney General (OAG) heads the Department of Justice and serves as chief law enforcement officer of the Federal Government. The Attorney General is nominated by the President and is confirmed by the Senate. The AG represents the United States in legal matters and advises the President and the heads of the executive departments.