On the 28th of June, 1062, an hermitical fraternity was founded in Affligem by six knights who repented of their violent way of life. Hermann II, Count Palatine of Lotharingia and his guardian, Anno II, archbishop of Cologne donated the foundation grounds. On this land, the first abbey church, dedicated to St Peter, was erected in 1083. The Benedictine Rule was adopted in 1085, followed by the formal dedication of the abbey in 1086. The counts of Brabant, also counts of Leuven, became their protectors in 1085/1086. A number of their family members are buried in the abbey church, including Queen Adeliza of England, as well as her father Duke Godfrey I of Leuven. Queen Adeliza was buried in the abbey church in 1151, near the clockwork. During the 12th century, the abbey became known for the strict adoption of the Cluniac observance. John Cotton, whose "De musica" is one of the earliest musical theses, covers the ecclesiastical use of monody in the organum and the roots of polyphony. Saint Bernard of Clairvaux visited Affligem in 1146, where it is said his greeting to the Blessed Virgin was miraculously answered. In memory of this event, he donated his staff and chalice to the abbey. Jan of Afflighem, Jan van Ruusbroec's Good Cook in the Groenendaal monastery near Brussels, was important for the survival of theology in the wake of the Black Death. His theology strongly influenced Gerard Groot, who taught Thomas à Kempis. Several monasteries were founded by the monks of Affligem or assigned to the abbot of Affligem by their founder. In 1523, Affligem joined the Bursfelde Congregation, a union of Benedictine monasteries formed in the 15th century for the stricter observance of the Benedictine rule. In 1569, the Archbishop of Mechelen became secular abbot and the spiritual duty was exercised by a provost, a measure that lasted until the dissolution of the abbey in 1796. Archbishop Jacob Boonen introduced the Monte Cassino observance. At his insistence, the Prior of Affligem, Benedict van Haeften, founded in 1627 a new congregation, B. M. V. in Templo Praesentat, which included Affligem and several other Belgian monasteries. It was dissolved in 1654. In 1796, during the French occupation, the monks were chased away from the abbey, part of the buildings destroyed and the lands confiscated. The last provost, Beda Regaus, preserved the miraculous image of Our Lady, as well as the staff and chalice of Saint Bernard. These came into the possession of a Benedictine monk, Veremund Daens, who in 1838 established a new foundation at Dendermonde.