HISTORY US SEAT OF GOVERNMENT
First the US Capitol was in New York.
Then it was moved to Philadelphia.
In 1791, via the Resident Act, the US Capitol was moved to DC.
https://www.worldatlas.com/articles/when-and-why-was-the-united-states-capital-moved-to-washington-dc.html
Residence Act of 1790
https://en.wikipedia.org/wiki/Residence_Act
The Residence Act of 1790, officially titled An Act for establishing the temporary and permanent seat of the Government of the United States (1 Stat. 130), is a United States federal statute adopted during the second session of the First United States Congress and signed into law by President George Washington on July 16, 1790. The Act provides for a national capital and permanent seat of government to be established at a site along the Potomac River and empowered President Washington to appoint commissioners to oversee the project. It also set a deadline of December 1800 for the capital to be ready, and designated Philadelphia as the nation's temporary capital while the new seat of government was being built. At the time, the federal government was operating out of New York City.