About 1076 Archbishop Gebhard of Salzburg, a follower of Pope Gregory VII in the Investiture Controversy, had the Petersberg fortress erected above the town in order to prevent Emperor Henry IV from crossing the Alps.