Texas was once a part of Mexico but gained independence in 1836 after a famous battle at the Alamo.