On the ruins of the Aztec realm the Spanish crown set the viceroyalty of New Spain - the first viceroy, Mendoza, in 1535, seated at Mexico City, head of Spanish America. Its reach ran north into today's American Southwest (California, New Mexico, Texas), south over Mesoamerica, and out by the Manila galleon to the Philippines and the Asia trade. Silver was its life: Zacatecas and Guanajuato led the world's output, shipped from Veracruz to Seville; society ranked by blood (peninsulars, creoles, mestizos, the native peoples), the church deep in government. The Bourbon reforms of the 18th century tightened the crown and strained the land, creole loyalty wearing thin; Napoleon's invasion of 1808 shook the metropole, the independence movements rose, and in 1821 Iturbide entered Mexico City - three hundred years of the viceroyalty closed.
Editorial note on dating Cortes took Tenochtitlan in 1521, ending the Aztecs (viceroyalty formalized in 1535 at Mexico City), also governing Central America and the Philippines via the Manila galleon; ended by Mexican independence in 1821.