 The war lasted from October 2, 1835 to April 21, 1836.However, a war at sea between Mexico and Texas continued into the 1840s.Animosity between the Mexican government and the American settlers in Texas, as well as many Texas residents of Mexican ancestry, began with the Siete Leyes of 1835, when Mexican President and General Antonio López de Santa Anna abolished the federal Constitution of 1824 and proclaimed the more centralizing 1835 constitution in its place.