Sonora were exploiting the indigenous. This rebellion destroyed the reputation of the Jesuit mission system. Another Seri rebellion occurred in 1748, with Pima and Tohono O’otham support and lasted into the 1750s. This kept the settlement situation in disarray. With population of the Mexican split half indigenous and half Spanish, about one-quarter of the indigenous population lived in Sonora alone. In 1767, the king of Spain expelled the Jesuits from Spanish-controlled territories, ending the mission system. In 1821, the colonial era in Sonora was ended by the Mexican War of Independence, which started in 1810. Without being directly involved in the
Mexican–American War could not be released from its obligations. The US was released from all obligations of Article XI five years later by Article II of the Gadsden Purchase of 1853. The 1848 Treaty of Guadalupe Hidalgo ended the war and enforced the Mexican Cession of the northern territories of Alta California and Santa Fe de Nuevo México to the United States. Mexico acknowledged the loss of what became the State of Texas and accepted the Rio Grande as its northern border with the U.S. The losses amounted to one-third of its original territory from its 1821 independence. Before the secession of