He wrote 29 of the 85 Federalist Papers with Alexander Hamilton and John Jay. These papers supported the ratification of the Constitution. Madison also wrote the Bill of Rights, because he believed that the country needed a set of rules to protect the rights of citizens. Madison was also the first graduate of Princeton, where he finished a four year plan in two years. His most well known feat was being the fourth president, following Thomas Jefferson as another Democratic-Republican. He won his race in a landslide. While he was president, the War of 1812 broke out between Great Britain and the United States. It ended with a treaty between the two countries in 1815. James Madison served two terms as president and later died on June 28, 1836 as the last signer of the