How long did it take for the Spaniards to leave Mexico?

The Spanish never fully left Mexico. Mexico gained its independence from Spain in 1821, but there are still many people of Spanish descent in Mexico today.
Copyright Wanderlust World © https://www.ynyoo.com