In the Lombard period, Perugia is spoken of as one of the principal cities of Tuscia. In the 9th century, with the consent of Charlemagne and Louis the Pious, it passed under the popes; but by the 11th century its commune was asserting itself, and for many centuries the city continued to maintain an independent life, warring against many of the neighbouring lands and cities: Foligno, Assisi, Spoleto, Todi, Siena, Arezzo, etc. In 1186, Henry VI, Holy Roman Emperor, "rex romanorum" and future emperor, granted diplomatic recognition to the consular government of the city; afterward Pope Innocent III, whose major aim was to give state dignity to the dominions having been constituting the patrimony of St. Peter, acknowledged the validity of the imperial statement and recognized the established civic practices having the force of law.