The Battle of San Jacinto was the deciding battle of the Texas Revolution in 1836. At the Battle of San Jacinto, the Treaty of Velasco was signed. The Treaty of Velasco declared the war was over and that the Mexicans would retreat.
Hope this helps! :)