With the war with Mexico ending in the Treaty of Guadalupe Hidalgo, the entire country saw an opportunity to expand into this new territory. However, should this new territory be slave or free? The South wanted new soil for cotton and tobacco, which would require slavery. Northerners saw economic opportunities in the creation of farmland to relieve the overcrowding in the East. The Compromise of 1850 was thought to quiet the debate, but new crisis drove the wedge between North and South deeper and deeper. Finally, with the election of Lincoln in 1860, the South seceded.