the walls. Both Odoacer and Theodoric and their followers were Arian Christians, but co-existed peacefully with the Latins, who were largely Catholic Orthodox. Ravenna's Orthodox bishops carried out notable building projects, of which the sole surviving one is the Cappella Arcivescovile. Theodoric allowed Roman citizens within his kingdom to be subject to Roman law and the Roman judicial system. The Goths, meanwhile, lived under their own laws and customs. In 519, when a mob had burned down the synagogues of Ravenna, Theodoric ordered the town to rebuild them at its own expense. Theodoric died in 526 and was succeeded by his young grandson Athalaric under the authority of his daughter Amalasunta, but by 535 both were dead and Theodoric's line was represented only by Amalasuntha's daughter Matasuntha. Various Ostrogothic military leaders took the Kingdom of Italy, but none were as successful as Theodoric had been. Meanwhile, the orthodox Christian Byzantine Emperor Justinian I opposed both Ostrogoth rule and the Arian variety of Christianity. In 535 his general Belisarius invaded Italy and in 540 conquered Ravenna. After the conquest of Italy was completed in 554, Ravenna became the seat of Byzantine government in Italy. From 540 to 600, Ravenna's bishops embarked upon a notable building program of churches in Ravenna and in and around the port city of Classe. Surviving monuments include the Basilica of San Vitale and the Basilica of Sant'Apollinare in Classe, as well as the partially surviving San Michele in Africisco. Exarchate of Ravenna Following the conquests of Belisarius for Eastern Roman Emperor Justinian I in the 6th century, Ravenna became the seat of the Byzantine governor of Italy, the Exarch, and was known as the Exarchate of Ravenna. It was at this time that the Ravenna Cosmography was written. Under Byzantine rule, the archbishop of the Archdiocese of Ravenna was temporarily granted autocephaly from the Roman Church by the emperor, in 666, but this was soon revoked. Nevertheless, the archbishop of Ravenna held the second place in Italy after the pope, and played an important role in many theological controversies during this period. Middle Ages and Renaissance The Lombards, under King Liutprand, occupied Ravenna in 712, but were forced to return it to the Byzantines. However, in 751 the Lombard king, Aistulf, succeeded in conquering Ravenna, thus ending Byzantine rule in northern Italy. King Pepin of the Franks attacked the Lombards under orders of Pope Stephen II.