and the Germanic king Odoacer later gifted it to his followers. During the Gothic War, however, Totila destroyed it. It was then part of the Byzantine Exarchate of Ravenna (changing its name to Chrysopolis, "Golden City", probably due to the presence of the imperial treasury) and, from 569, of the Lombard Kingdom of Italy. During the Middle Ages, Parma became an important stage of the Via Francigena, the main road connecting Rome to Northern Europe; several castles, hospitals and inns were built in the following centuries to host the increasing number of pilgrims who passed by Parma and Fidenza, following the Apennines via Collecchio, Berceto and the Corchia ranges before descending the Passo della Cisa into Tuscany, heading finally south toward Rome. The city had a medieval Jewish community. The Palatine Library houses the largest collection of Hebrew manuscripts in Italy, and the second-largest in the world after the Bodleian Library in Oxford. Middle Ages Under Frankish rule, Parma became the capital of a county in 774. Like most northern Italian cities, it was nominally a part of the Holy Roman Empire created by Charlemagne, but locally ruled by its bishops, the first being Guibodus. In the subsequent struggles between the Papacy and the Empire, Parma was usually a member of the Imperial party. Two of its bishops became antipopes: Càdalo, founder of the cathedral, as Honorius II; and Guibert, as Clement III. An almost independent commune was created around 1140; a treaty between Parma and Piacenza of 1149 is the earliest document of a comune headed by consuls. After the Peace of Constance in 1183 confirmed the Italian communes' rights of self-governance, long-standing quarrels with the neighbouring communes of Reggio Emilia, Piacenza and Cremona became harsher, with the aim of controlling the vital trading line over the Po River. The struggle between Guelphs and Ghibellines was a feature of Parma too. In 1213, her podestà was the Guelph Rambertino Buvalelli. Then, after a long stance alongside the emperors, the Papist families of the city gained control in 1248. The city was besieged in 1247–48 by Emperor Frederick II, who was however crushed in the battle that ensued. By 1328, Rolando de' Rossi was made signore of Parma. In 1331, the city submitted to King John of Bohemia. Parma fell under the control of Milan in 1341. After a short-lived period of independence under the Terzi family (1404–1409), the Sforza