Answer:
Mexico won its independence from Spain in 1821. After the new country's monarchy was overthrown, the Constitution of 1824 established a federalist republic composed of multiple states. Sparsely populated provinces were denied independent statehood and instead merged with neighboring areas. Mexican Texas, which marked the country's eastern border with the United States, was combined with Coahuila to form the new state Coahuila y Tejas.[2] To facilitate government of the large area, the state was subdivided into several departments; all of Texas was included in the Department of BĂ©xar.[3]
i hope i helped!