Question: was nyc ever the capital of the us

Answer: Yes, Prior to establishing the nation's capital in Washington, D.C., the United States Congress and its predecessors had met in Philadelphia (Independence Hall and Congress Hall), New York City (Federal Hall), and a number of other locations (York, Pennsylvania; Lancaster, Pennsylvania; Maryland State House in Annapolis, Maryland; and Nassau Hall in Princeton, New Jersey). In September 1774, the First Continental Congress brought together delegates from the colonies in Philadelphia, followed by the Second Continental Congress, which met from May 1775 to March 1781.