Sam Houston is elected as the first president of the Republic of Texas.