He served as the first viceroy of New Spain (which centred on present-day Mexico City) from 1535 to 1550, and did much to improve relations between Spaniards and American Indians, fostering economic development (especially in mining) and educational opportunities for both groups. From 1551 he was viceroy of Peru.