Answer :

New York City was the temporary capital of the United States in 1789. It was moved to Washington D.C. 
New york was the capital of the United States back then because it was the most populated place