The Department of Justice was established by act of June 22, 1870 (28 U.S.C. 501, 503, 509 note), with the Attorney General as its head. The affairs and activities of the Department of Justice are generally directed by the Attorney General.
The Attorney General represents the United States in legal matters generally and gives advice and opinions to the President and to the heads of the executive departments of the Government when so requested. The Attorney General appears in person to represent the Government before the U.S. Supreme Court in cases of exceptional gravity or importance.