The first national flag of the New World inspired by this symbolism was the flag of Mexico, adopted when the First Mexican Empire gained independence from Spain in 1821.