 North of that line cities grew up slowly, and Chilean lands eventually became an important source of food for the Viceroyalty of Peru.Valdivia became the first governor of the Captaincy General of Chile.In that post, he obeyed the viceroy of Peru and, through him, the King of Spain and his bureaucracy.