 In 1835, all of the local militias in Texas were annexed by Sam Houston to provide a unified military command for the provisional government of the Republic of Texas.After becoming an independent republic in 1836, these forces were aligned with the Army of the Republic of Texas.In 1845, with the annexation of Texas by the United States, this structure was supplanted by the United States Army, but local militia companies were maintained for a ready response.