Mexico had reluctantly ceded California and much of its northern territory to the United States in the 1848 Treaty of Guadalupe Hidalgo,. When the Mexican diplomats signed the treaty, they pictured California as a region of sleepy mission towns with a tiny population of about 7,300-not a devastating loss to the Mexican empire.