In January 1785, New York City became the seat of the Confederation Congress, the nation's central government under the "Articles of Confederation and Perpetual Union."
With the ratification of the United States Constitution in March 1789, the Confederation Congress's departments became federal departments, and New York City became the first official national capital.