After the invasion of the Ostrogoths, it may have been renamed "Theodoricopolis"; in the 6th century it was conquered by the Franks. The city suffered several invasions, by the Magyars in 925-926, when the cathedral was destroyed, and by the Saracens (940 and 954), but afterwards it flourished thanks to its location, where the roads from several major Alpine transit routes come together and continue down the Rhine. The routes had been already used under the Romans but acquired greater importance under the Ottonian dynasty of the Holy Roman Empire. Emperor Otto I granted the town the right to collect tolls in 952 and appointed his vassal Hartpert as bishop of Chur in 958, giving the bishopric numerous privileges. In 1170 the bishop became a prince-bishop and kept total control over the road between Chur and Chiavenna.