The history of New York City (prehistory-1664) began with the geological formation of the peculiar territory of what is today New York City. The area was long inhabited by the Lenape; after initial European exploration, the Dutch established New Amsterdam and New Netherland. In 1664, the British conquered the area and renamed it New York.
The history of New York City (1665-1783) began with the establishment of English rule over formerly Dutch New Amsterdam and New Netherland. As the newly renamed City of New York and surrounding areas developed, there was a growing independent feeling among some, but the area was decidedly split in its loyalties. The site of modern New York City was the theatre of the New York Campaign, a series of major battles in the early American Revolutionary War.
The history of New York City (1784-1854) started with the establishment of the city as the temporary capital of the new United States in 1785. The city grew as an economic center with the opening of the Erie Canal in 1825; the growth of its railroads would complete its dominance. Tammany Hall began to grow in influence with the support of many of the immigrant Irish, culminating in the election of the first Tammany mayor, Fernando Wood, in 1854.