The National Archives and Records Administration is an independent agency of the United States government within the executive branch, charged with the preservation and documentation of government and historical records. From Wikipedia
Shogan’s dismissal follows Trump’s criticism of the National Archives' role in past investigations involving classified documents.