The Viceroyalty of Peru (in Spanish, "Virreinato del Perú") was a Spanish colonial administrative district that was created in 1542 and originally contained most of Spanish-ruled South America. It was governed from the capital of Lima. 