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. In 1790, he won election to the Senate, where he became a leader of the Democratic-Republican Party. He left the Senate in 1794 to serve as President George Washington's ambassador to France, but was recalled by Washington in 1796. During this time, Monroe formed a lifelong friendship with an older classmate, John Marshall. Monroe's mother died in 1772, and his father two years later.