By the mid-1700s, New York had become one of the most important cities in colonial America, a hub for trade and immigration.