James Monroe (/mənˈroʊ/; April 28, 1758 – July 4, 1831) was an American statesman, lawyer, diplomat and Founding Father who served as the fifth president of the United States from 1817 to 1825. A member of the Democratic-Republican Party, Monroe was the last president of the Virginia dynasty; his presidency coincided with the Era of Good Feelings. He is perhaps best known for issuing the Monroe Doctrine, a policy of opposing European colonialism in the Americas. In response to these Seminole attacks, Monroe ordered a military expedition to cross into Spanish Florida and attack the Seminoles. The expedition, led by Andrew Jackson, defeated numerous Seminoles but also seized the Spanish territorial capital of Pensacola. With the capture of Pensacola, Jackson established de facto American control of the entire territory.