section_path: History/Middle Ages
section_name: Middle Ages
paragraph_text: Middle Ages
  
  After the fall of the Western Roman Empire, the town, along with the rest of the Italian peninsula, was conquered by the Heruli and the Ostrogoths, recaptured by the Romans, but then conquered again by the Lombards whose territory then fell into the hands of the Franks under Charlemagne (773). The Contea di Torino (countship) was founded in the 940s and was held by the Arduinic dynasty until 1050. After the marriage of Adelaide of Susa with Humbert Biancamano 's son Otto, the family of the Counts of Savoy gained control. While the title of count was held by the Bishop as count of Turin (1092–1130 and 1136–1191) it was ruled as a prince-bishopric by the Bishops. In 1230–1235, it was a lordship under the Marquess of Montferrat, styled Lord of Turin. At the end of the 13th century, when it was annexed to the Duchy of Savoy, the city already had 20,000 inhabitants. Many of the gardens and palaces were built in the 15th century when the city was redesigned. The University of Turin was also founded during this period.