In 1825, the Erie Canal opened, connecting the Atlantic Ocean (via the Hudson River) to the Great Lakes (Lake Erie at Buffalo). The 584 km (363-mile) canal—built 1817–1825—transformed American commerce.
It did not connect directly to the Pacific Ocean. That claim confuses the Erie Canal with later transcontinental railroads or the Panama Canal (1914). The Erie Canal linked New York City to the Midwest interior, slashing freight costs 90% and making NYC the nation's premier port.
The canal's western terminus at Buffalo became a boomtown. Its eastern terminus at Albany connected to the Hudson, reaching Manhattan. The Great Lakes–Atlantic waterway was complete—no Pacific involved.