 The end of the war resulted in the creation of the Republic of Texas in 1836.In 1845, the U.S. Congress ratified Texas's petition for statehood.In response to a Mexican massacre of a U.S. army detachment in disputed territory, the U.S. Congress declared war on May 13, 1846; Mexico followed suit on 23 May.