Serves as the chief legal officer of the federal government, heading the Department of Justice, advising the president and executive agencies, directing federal prosecutors, and representing the United States before the Supreme Court. Created by the Judiciary Act of 1789 and appointed by the president with Senate confirmation, the office shapes federal law-enforcement priorities and litigation strategy, providing a key link in the executive branch's role within the separation of powers.