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 attended this school only 11 weeks a year, as his labor was needed on the farm. 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. Though he inherited property from both of his parents, the 16-year-old Monroe was forced to withdraw from school to support his younger brothers. His childless maternal uncle, Joseph Jones, became a surrogate father to Monroe and his siblings.