 In medieval times, the "castello" served as a residence of local counts controlling the Alpine passes in the north and east.The Hohenstaufen emperor Frederick Barbarossa first crossed Septimer Pass on his Italian campaign of 1163/64.It was in Chiavenna, where in 1176 he met with his Welf cousin, the Saxon duke Henry the Lion.