... gave Mexico (including what we now call Texas) independence from Spain.
Is that what's meant? If not, then you need to reread your text and/or use Google for each of those wars named. If you use Google, look for the RESULT of each one.
Which war gave Texas its independence from spain?
The Mexican war of Independence****
The Spanish american war
The war of spanish secession
the war of triple alliance
2 answers
https://en.wikipedia.org/wiki/Mexican_War_of_Independence
https://en.wikipedia.org/wiki/Spanish%E2%80%93American_War
https://en.wikipedia.org/wiki/War_of_the_Spanish_Succession
https://en.wikipedia.org/wiki/Paraguayan_War
https://en.wikipedia.org/wiki/Spanish%E2%80%93American_War
https://en.wikipedia.org/wiki/War_of_the_Spanish_Succession
https://en.wikipedia.org/wiki/Paraguayan_War