In 1787, the Constitution was written to address the flaws in the Articles of Confederation and provide a federal government strong enough to protect the nation and preserve the rights of the people.
The Federalist Papers, which urged the states to ratify the Constitution, were written by several famous Framers, including Alexander Hamilton and James Madison.