Mexico was not "created for a function"; its role has evolved across eras:
Advanced civilizations (Maya, Aztec, Olmec) built complex societies with achievements in science, architecture, and governance.
As the Viceroyalty of New Spain, Mexico served as a primary source of wealth—precious metals, agriculture—for the Spanish Empire.
Independence from Spain in 1821 was followed by decades of instability and political struggle.
Today, Mexico is a federal presidential republic focused on economic growth, social development, democratic governance, and national sovereignty.