<Tr> <Td> <Ul> <Li> </Li> <Li> </Li> <Li> </Li> </Ul> </Td> </Tr> <Ul> <Li> </Li> <Li> </Li> <Li> </Li> </Ul> <P> 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 of independence . Initially, Mexican Texas operated very similarly to Spanish Texas . However, the 1824 Constitution of Mexico set up a federal structure, with the province of Tejas joined with the province of Coahuila to form the state of Coahuila y Tejas . </P> <P> There were about 3500 settlers living in the whole of Tejas in 1821, mostly concentrated in San Antonio and La Bahia, despite efforts by the authorities to increase the settler population along the frontier . The settler population was overwhelmingly outnumbered by the indigenous people . To increase settler numbers, Mexico enacted the General Colonization Law in 1824, which enabled all heads of household, regardless of race, religion or immigrant status, to acquire land in Mexico . The first empresarial grant had been made under Spanish control to Stephen F. Austin, whose settlers, known as the Old Three Hundred, settled along the Brazos River in 1822 . The grant was later ratified by the Mexican government . Twenty - three other empresarios brought settlers to the state, the majority from the United States of America to the east, while others came from the rest of Mexico, and Europe . </P>

How long was texas a part of mexico
find me the text answering this question