In 1821, after Mexico's War of Independence from Spain, Texas was part of the United Mexican States as the state of Coahuila y Tejas. A large influx of Americans soon followed, originally with the approval of Mexico's president. In 1836, the now largely "American" Texans fought a war of independence from the central government of Mexico. The arrivals from the US objected to Mexico's abolition of slavery. They declared independence and established the Republic of Texas. In 1846, the Republic dissolved when Texas entered the United States of America as a state. By 1850, fewer than 16,000 or 7.5% of Texans were of Mexican descent, Spanish-speaking people (both Mexicans and non-Spanish European settlers, including German Texans) were outnumbered six to one by English-speaking settlers (both Americans and other immigrant Europeans).