 Colonial Mexico was part of the Spanish Empire and administered by the Viceroyalty of New Spain.The Spanish crown claimed all of the Western Hemisphere west of the line established between Spain and Portugal by the Treaty of Tordesillas.This included all of North America and South America, except for Brazil.