Mexico declared its independence from Spain on November 6, 1813. Spain formally recognised Mexico's independence on September 27, 1821.