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. The current law of national symbols, Law on the National Arms, Flag, and Anthem, that governs the use of the national flag has been in place since 1984.
Red, white, and green are the colors of the national liberation army in Mexico. The central emblem is the Aztec pictogram for Tenochtitlan (now Mexico City), the center of their empire. It recalls the legend that inspired the Aztecs to settle on what was originally a lake-island. The form of the coat of arms was most recently revised in 1968. A ribbon in the national colors is at the bottom of the coat of arms. 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. The current national flag, the Fourth National Flag, is also used as the Mexican naval ensign by ships registered in Mexico.