Mexico won the Mexican War of Independence in 1821. Mexico, including Texas, was free from the Spanish Empire. Americans and other settlers came into Texas when Mexico allowed non-Spanish settlers to settle here. After many settlers came to Texas, Mexico started taxing non-citizens. This outraged many settlers. Many were already angry because Mexico banned slavery.