 At times the Tongva violently resisted Spanish rule, such as the 1785 rebellion led by the female chief Toypurina.In 1821, Mexico gained its independence from Spain and the government sold mission lands to ranchers, forcing the Tongva to culturally assimilate.Three decades later, California was ceded to the United States following its success in the Mexican–American War.