Mexico never fully controlled Texas. In 1824 it created the Department of Texas within Coahuila y Tejas, but Texas declared independence in 1836 and became the Republic of Texas.