The Mexican flag has undergone several revisions throughout history. The first national flag was created in 1821 and was influenced by flags used during Mexico's War of Independence, including the Standard of the Virgin of Guadalupe. The colors of the flag - red, green, and white - were established after Mexico gained independence from Spain. The design has since been modified a few times, including by the Second Mexican Empire which added eagles to the flag. The colors now symbolize hope, purity, and religion. While the colors have remained consistent, the coat of arms in the center has seen revisions to make the flag increasingly representative of Mexico over time.