In the year 1077 a first fortification was built on a steep rock above the town of Salzburg. One of the reasons for this was the Investiture Controversy between the German Emperor Henry IV and Pope Gregory VII, whom the Archdiocese of Salzburg had sided with.