Mexican Texas is the historiographical name used to refer to the era of Texan history between 1821 and 1836, when it was part of Mexico. Mexico gained independence from Spain in 1821 in its war ofindependence. Initially, Mexican Texas operated very similarly to Spanish Texas.