New York City was the capital of the United States until 1790.
New York City . New York served as the capital of the United States from 1785 until 1790 . It has been the country 's largest city since 1790 .