territory of Asti comprised a wide area, stretching out to Albenga and the Maritime Alps. This remained when northern Italy was conquered by the Franks in 774, with the title of County. In the late Carolingian age Asti was ruled directly by his bishops, who were the main landlords of the area. Most important are Audax (904-926) and Bruningus (937-966), who moved the episcopal seat to the Castel Vecchio ("Old Castle"), where it remained until 1409. The bishopric of Asti remained a powerful entity well into the 11th century, when Pietro II received huge privileges by emperor Henry II. In the second half of the century, Bishop Otto tried to resist the aims of the powerful countess Adelaide of Susa, who damaged the city several times. During Otto's reign, a commune and the consul magistrates are mentioned for the first time (1095). Local power Asti was one of the first free communes of Italy, and in 1140 received the right to mint coins of its own by Conrad II. As the commune, however, had begun to erode the lands of the bishop and other local faudataries, the latter sued for help to Frederick Barbarossa, who presented under the city walls with a huge army in February 1155. After a short siege, Asti was stormed and burnt. Subsequently, Asti adhered to the Lombard League (1169) against the German emperor, but was again defeated in 1174. Despite this, after the Peace of Constance (1183), the city gained further privileges. The 13th century saw the peak of the Astigiani economic and cultural splendour, only momentarily hindered by wars against Alba, Alessandria, Savoy, Milan (which besieged the city in 1230) and the Marquesses of Montferrat and Saluzzo. In particular, the commune aimed to gain control over the lucrative trade routes leading northwards from the Ligurian ports. In this period, the rise of the Casane Astigiane resulted in contrasting political familial alliances of Guelph and Ghibelline supporters. During the wars led by Emperor Frederick II in northern Italy, the city chose his side: Asti was defeated by the Guelphs of Alessandria at Quattordio and Clamandrana, but thanks to Genoese help, it recovered easily. After Frederick's death, the struggle against Thomas II of Savoy became fierce: the Astigiani defeated him on February 23, 1255, at the Battle of Montebruno, but Thomas (who had been taken prisoner) replied ordering all traders from Asti to be arrested in