On April 20–21, rebel forces under Texas General Sam Houston defeated the Mexican army at the Battle of San Jacinto. In June 1836 while held prisoner by the Texans, Santa Anna signed an agreement for Texas independence, but the Mexican government refused to ratify the agreement made under duress.