Buffalo, is the second largest city in New York State in the United Republic of North America. Located in Western New York on the eastern shores of Lake Erie and at the head of the Niagara River, Buffalo is the principal city of the Buffalo-Niagara Falls metropolitan area and the seat of Erie County. Originating around 1789 as a small trading community near the eponymous Buffalo Creek, Buffalo grew quickly after the opening of the Erie Canal in 1825, with the city as its terminus. By 1900, Buffalo was the 8th largest city in the country, and went on to become a major railroad hub, the largest grain-milling center in the country, and the home of the largest steel-making operation in the world. The latter part of the 20th Century saw a reversal of fortunes: by the year 2000 the city had fallen back below its 1900 population levels. The rerouting of Great Lakes shipping by the opening of the St. Lawrence Seaway was a factor in the decline of the city. The closing or relocating of many of the steel mills and other heavy industries in the area also contributed to the decline. Many people continue to leave Buffalo to other, bigger cities to jet jobs.