sentences:  Helfenstein's conflict with Emperor Henry IV during the Investiture Controversy influenced the expansion of the fortress, with the Archbishop taking the side of Pope Gregory VII and the German anti-king Rudolf of Rheinfelden.The fortress was gradually expanded during the following centuries.The ring walls and towers were built in 1462 under Prince-Archbishop Burkhard II von Weißpriach.