<Li> You should also add the template ((Translated es Independencia de México)) to the talk page . </Li> <Li> For more guidance, see Wikipedia: Translation . </Li> <Table> <Tr> <Th_colspan="2"> Mexican War of Independence </Th> </Tr> <Tr> <Td_colspan="2"> Part of the Spanish American wars of independence </Td> </Tr> <Tr> <Td_colspan="2"> Clockwise from top left: Miguel Hidalgo, José María Morelos, Embrace of Acatempan between Iturbide and Guerrero, Trigarante Army in Mexico City, Mural of independence by O'Gorman </Td> </Tr> <Tr> <Td_colspan="2"> <Table> <Tr> <Th> Date </Th> <Td> 16 September 1810--27 September 1821 (11 years, 1 week and 4 days) </Td> </Tr> <Tr> <Th> Location </Th> <Td> Mexico </Td> </Tr> <Tr> <Th> Result </Th> <Td> <P> Mexican independence </P> <Ul> <Li> First Mexican Empire gains independence from Spain </Li> <Li> Signing of the Declaration of Independence of the Mexican Empire </Li> </Ul> </Td> </Tr> <Tr> <Th> Territorial changes </Th> <Td> Spain loses the continental area of Viceroyalty of New Spain </Td> </Tr> </Table> </Td> </Tr> <Tr> <Th_colspan="2"> Belligerents </Th> </Tr> <Tr> <Td> Insurgents Army of the Three Guarantees (1821) </Td> <Td> <P> Spanish Empire </P> <Ul> <Li> Mexican royalists </Li> </Ul> </Td> </Tr> <Tr> <Th_colspan="2"> Commanders and leaders </Th> </Tr> <Tr> <Td> Miguel Hidalgo (1810--11) Ignacio Allende (1810--11) Ignacio López R. † (1810--11) José María Morelos (1810--15) Vicente Guerrero (1810--21) Mariano Matamoros (1811--14) Guadalupe Victoria (1812--21) Francisco Xavier Mina (1817) Agustín de Iturbide (1821) </Td> <Td> Ferdinand VII Francisco Venegas (1810--13) Félix María Calleja (1813--16) Juan Ruiz de A. (1816--21) Francisco Novella (1821) Juan O'Donojú (1821) </Td> </Tr> <Tr> <Th_colspan="2"> Strength </Th> </Tr> <Tr> <Td> <P> 100,000 irregular </P> 23,100 regular </Td> <Td> 17,000 </Td> </Tr> <Tr> <Th_colspan="2"> Casualties and losses </Th> </Tr> <Tr> <Td> </Td> <Td> 2,000 killed </Td> </Tr> </Table> <Tr> <Th_colspan="2"> Mexican War of Independence </Th> </Tr>

How many years did the mexican war for independence last
find me the text answering this question