The United States Constitution was written in 1787 during the Philadelphia Convention. The old Congress set the rules the new government followed in terms of writing and ratifying the new constitution. After ratification in eleven states, in 1789 its elected officers of government assembled in New York City, replacing the Articles of Confederation government.