What Year was Mexico Founded?

Mexica gained it’s independance from Spain in 1821. Spain conqured and conolized the land now known as Mexico in 1521. It was know then as New Spain.