The flag of Mexico (Spanish: Bandera de México) is a vertical tricolor of green, white, and red with the national coat of arms charged in the center of the white stripe. While the meaning of the colors has changed over time, these three colors were adopted by Mexico following independence from Spain during the country's War of Independence, and subsequent First Mexican Empire. The current flag was adopted in 1968, but the overall design has been used since 1821, when the First National Flag was created.
Throughout history, the flag has changed four times, as the design of the coat of arms and the length-width ratios of the flag have been modified. However, the coat of arms has had the same features throughout: an eagle, holding a serpent in its talon, is perched on top of a prickly pear cactus; the cactus is situated on a rock that rises above a lake. The coat of arms is derived from an Aztec legend that their gods told them to build a city where they spot an eagle on a nopal eating a serpent, which is now Mexico City.