James Monroe (; 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. He also served as the governor of Virginia, a member of the United States Senate, the U.S. ambassador to France and Britain, the seventh Secretary of State, and the eighth Secretary of War.