James Monroe (New York politician) several children. His paternal 2x-great grandfather, Patrick Andrew Monroe, emigrated to America from Scotland in the mid-17th century. In 1650, he patented a large tract of land in Washington Parish, Westmoreland County, Virginia. Among James Monroe's ancestors were French Huguenot immigrants, who came to Virginia in 1700. Monroe graduated from the United States Military Academy in 1815, and was commissioned in the Artillery Corps. Shortly after graduating, he was sent to fight in the war with Algiers, and was wounded while serving as a gunnery officer on board the USS "Guerriere". From 1817 to 1822, he served as aide-de-camp to
James Monroe of Virginia and rose to national prominence as a diplomat in France when he helped negotiate the Louisiana Purchase in 1803. During the War of 1812, Monroe served in critical roles as Secretary of State and the Secretary of War under President James Madison. Facing little opposition from the waning Federalist Party, Monroe was easily elected president in 1816, winning over eighty percent against Rufus King (who hadn't even been chosen by a convention since the Federalists were too weak to organize) of the electoral vote and becoming the last president during the First Party System era of American politics.