financial power. It served as a critical administrative hub of the Spanish colonial empire, later transitioning into Mexico’s federal district after the nation won independence from Spain