The Judiciary Act of 1789 created the Office of the Attorney General which evolved over the years into the head of the Department of Justice and chief law enforcement officer of the Federal Government.
Read Here