of the mission era. Early Mexican rancho era First Mexican Empire and First Mexican Republic period The Mexican Empire assumed ownership of Kumeyaay lands after defeating Spain in the Mexican War of Independence in 1821. The following year, Mexican troops confiscated all coastal lands from the Kumeyaay in 1822, granting much of the land to Mexican settlers, who became known as Californios, to develop the land for agriculture, beginning the California rancho era. Kumeyaay fell victim to smallpox and malaria epidemics in 1827 and 1832, reducing the Kumeyaay population. Various disputes culminated to a skirmish between the Kumeyaay and Mexican soldiers stationed in San Diego in 1826, killing 26 Kumeyaay. This provoked Lt. Juan M. Ibarra to lead several attacks on Kumeyaay-controlled lands, killing 28 people in his attack on Santa Ysabel. After decades of debates and delays, the missions in Alta California were secularized in 1833, and Ipai and Tipais lost their lands; band members had to choose between becoming serfs, trespassers, rebels, or fugitives. This increased tensions between the Kumeyaay and the Mexican settlers as the Kumeyaay economic instability threatened the security of Mexican and American merchants transiting through the area. Centralist Republic of Mexico period Under territorial governor José Figueroa, some of the Kumeyaay from Mission San Diego were allowed to resettle and establish San Pasqual pueblo in 1835, who would later become the San Pasqual Band of Diegueno Mission Indians. The Kumeyaay pueblo fought against hostile bands and protected Mexican settlers, with a decisive victory over an anti-Christian uprising and capturing its leader, Claudio. With conditions worsening, the Kumeyaay led an attack on Rancho Tecate in 1836, forcing the alcalde of San Diego to send an expedition to suppress the Kumeyaay, but returned unsuccessfully. Because of the failed venture, Mexico failed to adequately suppress talk of Californian secession from American settlers in northern Alta California. Further Kumeyaay raids on El Cajon (1836) and Rancho Jamul (1837) threatened the security of San Diego, as many residents of San Diego fled the city. The Kumeyaay were able to attack San Diego in the late 1830s. Kumeyaay advancements into Rancho Bernardo in the north and San Ysidro and Tijuana to the south at the end of the decade threatened to cut off San Diego from the rest of the Centralist Republic of Mexico. The Kumeyaay made preparations to lay siege on San Diego in the early 1840s and launched