Texas seceded from Mexico in 1836, spurred on primarily by American settlers in the former Mexican territory against the government of Santa Anna.