Guerilla attacks against . supply lines continued, but for all intents and purposes the war had ended. Santa Anna resigned, and the United States waited for a new government capable of negotiations to form. Finally, on Feb. 2, 1848, the Treaty of Guadalupe Hidalgo was signed, establishing the Rio Grande and not the Nueces River as the .-Mexican border. Under the treaty, Mexico also recognized the . annexation of Texas, and agreed to sell California and the rest of its territory north of the Rio Grande for $15 million plus the assumption of certain damages claims.