Control over the former Inca lands had been entrusted to Pedro de la Gasca by the Spanish king (and Holy Roman Emperor) Emperor Charles V. Gasca commanded Alonso de Mendoza to found a new city commemorating the end of the civil wars in Peru; the city of La Paz was founded on October 20, 1548, by Alonzo de Mendoza, with Juan de Vargas appointed as its first mayor.