Santa Anna was the nation 's leader during the conflict with Texas and during the Mexican -- American War ( 1846 -- 48 ) .
Texas declared itself independent in 1836 .
Santa Anna was the nation 's leader during the conflict with Texas , which declared itself independent in 1836 , and during the Mexican -- American War ( 1846 -- 48 ) .