The Erie Canal was built between 1817-1825 to connect the Hudson River to Lake Erie, making transportation of goods across New York State easier and cheaper. Its completion transformed New York City into the leading commercial center, with its population growing dramatically. Many immigrants from Europe also arrived during this time, fleeing poverty and starvation, and helped build the Erie Canal and work in northern factories. President Monroe issued the Monroe Doctrine in 1823 to prevent further European colonization of nations in Central and South America that had recently gained independence.