|2nd Librarian of Congress|
|President||Thomas Jefferson |
|Preceded by||John J. Beckley|
|Succeeded by||George Watterston|
Montgomery County, Maryland
|Died||December 24, 1819 (aged 50–51)|
|Alma mater||Princeton University|
Patrick Magruder (1768 – December 24, 1819) was the second Librarian of the United States Congress, serving from 1807 to 1815.
Magruder was born on his family's estate, Locust Grove, near Rockville in the Province of Maryland. Magruder attended Princeton College and became a lawyer. In 1805, he was elected to the Ninth United States Congress from the third district of Maryland. After the death of John J. Beckley, President Thomas Jefferson appointed Magruder to the dual post of Clerk of the United States House of Representatives and Librarian of Congress. The posts were not separated until 1815. During the War of 1812, the British burned Washington, D.C., including the Library of Congress, which was then housed in the US Capitol Building. After an investigation by Congress into the destruction of the library and the use of its funds, Magruder resigned. He died and was buried on his family's ancestral estate, Sweden, near Petersburg in Dinwiddie County, Virginia.