After the War of 1812 the Federalist Party faded away, leaving an "Era of Good Feelings" in which only one party was important, under Presidents James Madison and James Monroe. Under Monroe, the United States' policy in North America was the Monroe Doctrine, which suggested that Europe should stop trying to control the United States and other independent countries in the Americas. Around this time, Congress called for something called the "American System". The American System meant spending money on banking, transportation and communication. Due to the American System, bigger cities and more factories were built. One of the big transportation projects of this time was the Erie Canal, a canal in the state of New York. By the 1840s, railroads were built as well as canals. By 1860, thousands of miles of railroads and telegraph lines had been built in the United States, mostly in the Northeast and Midwest.