I want to know the answer to the following question:
How long was the war?
All the background I'm provided with is that "Mexico's independence from Spain was effectively declared in the Declaration of Independence of the Mexican Empire on September 27, 1821, after a decade of war.". Is that enough to answer the question?
Answer: yes