The annexation of Texas to the United States and the gain of new territory by the Treaty of Guadalupe Hidalgo at the close of the Mexican War (1848) which aggravated the hostility between North and South concerning the question of the extension of slavery into the territories