Mexico’s independence is usually marked as 1821, at the end of the War of Independence, but celebrations focus on the 1810 uprising that started the struggle.

Short direct answer

  • The Mexican War of Independence lasted from September 16, 1810, to September 27, 1821.
  • The date most historians recognize as independence is August 24, 1821, when the Treaty of Córdoba was signed, acknowledging separation from Spain.
  • Mexico formally proclaimed itself independent with the Act of Independence in late September 1821.

So, if you’re answering “when did Mexico gain independence?” in a quick way, the clearest date to give is 1821 , often specified as August 24, 1821 (treaty signed) or September 27–28, 1821 (triumphal entry into Mexico City and formal act of independence).

Information gathered from public forums or data available on the internet and portrayed here.