James Madison was elected to the Virginia Constitutional Convention in 1776 and to the Continental Congress in December 1779. Madison was instrumental in organizing the body of delegates who wrote the US Constitution in 1787 and is remembered as the "Father of the Constitution." Later, while a member of the US House of Representatives, Madison played a leading role in the creation of the Bill of Rights, which was proposed in 1789 and adopted in 1791. After serving as Thomas Jefferson's secretary of state for eight years, he was elected president and served two terms, leading the nation during the War of 1812. After his presidency, Madison retired to Montpelier, his Virginia estate, where he died on June 28, 1836.