Mexico City served as the political, administrative and financial center of a major part of the Spanish colonial empire.