How many years after Chile declared its independence from Spain did Mexico declare independence?

Chile did not declare its independence from Spain. It was the Viceroyalty of New Spain (including modern-day Mexico) that declared its independence in 1821.
Copyright Wanderlust World © https://www.ynyoo.com