Explain how Texas gained its Independence from Mexico. Be sure to include key battles and their reason for opposition to Mexican Laws) in 4 sentences

Texas gained its independence from Mexico through the Texas Revolution, which lasted from 1835 to 1836. The revolution was triggered by the opposition of Texian settlers to Mexican laws that restricted their political autonomy and threatened their way of life. The first major battle of the revolution was the Battle of Gonzales in October 1835, where Texian rebels successfully defended a cannon from Mexican troops, symbolizing their defiance and determination. The Texian forces, led by figures such as Sam Houston and Stephen F. Austin, went on to win significant victories at the Battle of the Alamo in February 1836 and the Battle of San Jacinto in April 1836, where they captured Mexican General Santa Anna and secured Texas' independence.