The fortification was built between 1075 and 1078 at the behest of Archbishop Gebhard of Salzburg during the Imperial Investiture Controversy, meant as a strategic bulwark atop a 155 meters high rock.