The newly elected Texian delegates to the Convention of 1836 quickly signed a declaration of independence on March 2, forming the Republic of Texas. After electing interim officers, the Convention disbanded. The new government joined the other settlers in Texas in the Runaway Scrape, fleeing from the approaching Mexican army. After several weeks of retreat, the Texian Army commanded by Sam Houston attacked and defeated Santa Anna's forces at the Battle of San Jacinto. Santa Anna was captured and forced to sign the Treaties of Velasco, ending the war. The Constitution of the Republic of Texas prohibited the government from restricting slavery or freeing slaves, and required free people of African descent to leave the country.