The Viceroyalty of New Spain was the name of the viceroy-ruled territories of the Spanish Empire in North America and its peripheries in Asia from 1521 to 1821. New Spain was the name that the Spanish gave to the area that today is central and southern Mexico, and since the capital city of the Viceroyalty was in Mexico City, the name was also used for the viceroyalty.