And while Brooklyn was the seventh largest city in the United States in 1840, New York with more ... opening of the Erie Canal connecting the Hudson River to the Great Lakes in 1825.