of office he pursued the goal of making the abbey independent of secular powers, on the basis of the reforms of Gorze Abbey in Lorraine and of Cluny, which had begun to take effect some time previously. This policy put him in direct opposition to Hirsau's powerful lay abbots, the Counts of Calw. A writ of Emperor Henry IV, probably drafted shortly after 1070, although it created the important link between the abbey and the monarchy, nevertheless largely confirmed the status of Hirsau as a private monastery of the counts. However, a privilege of Pope Gregory VII, drawn up between 1073 and 1075, put Hirsau under papal protection. William eventually prevailed against Count Adalbert II of Calw, who renounced his lay lordship over the abbey. Henry IV immediately put the monastic community under his own protection, although Hirsau was not made an imperial abbey directly answerable to the monarch (reichsunmittelbar). The count received by royal grant the Vogtei of the abbey. The abbey, by deed of 9 October 1075, received the "complete freedom of the monastery", which included the freedom to elect and invest the abbot, and to elect or dismiss the Vogt, although it is true that the choice of candidates for the latter position was restricted to the kin of the founder. Under William's abbacy, Hirschau reached the zenith of its glory and, despite the unusually strict monastic discipline which he introduced from Cluny, the number of priest-monks increased from 15 to 150. As the monastery, dedicated to Saint Aurelius, was cramped, over-crowded and subject to flooding, He built a new monastic complex on the opposite side of the Nagold. There, sometime after 1083, was built the largest monastery complex in Germany of the time, with its great Romanesque church dedicated to Saint Peter. The former site, he converted into a priory. In 1075 William went to Rome to obtain the papal confirmation for the exemption of Hirschau. On this occasion he became acquainted with Pope Gregory VII, with whose efforts towards reforms he was in deep sympathy and whom he afterwards strongly supported in the Investiture Controversy against Henry IV. Hirsau Reforms William became the leading agent of the Gregorian reform in Germany.<ref>[https://www.britannica.com/biography/William-of-Hirsau "William Of Hirsau", Encyclopedia Britannica]</ref> He introduced to Hirsau, from no later than 1079, a number of reforms originating in Cluny, on which he based the "Constitutiones Hirsaugienses" ("Customs of Hirsau"), which later became