The monastery St. Margareth zu Baumburg was founded by Count Berengar II of Sulzbach in 1107-09 to fulfill his oath on the death of his wife Adelheid von Megling-Frontenhausen. Count Berengar appointed Eberwin as provost of the monastery. He moved Augustinian canons to the new abbey from the Berchtesgaden Provostry, which he and Eberwin had previously peopled with canons from Rottenbuch Abbey. He also appropriated property from Berchtesgaden for the new monastery. However, around 1116 Berengar let Eberwin return to Berchtesgaden to lead it again as an independent monastery. The new provost Gottschalk of Baumburg was not at all pleased with the detachment of Berchtesgaden. He called Eberwin an "apostate" and removed him from the dean's list. In addition, he was not prepared to accept the loss of the Berchtesgaden property. After the death of Berengar he challenged the legality of the separation of the two monasteries and appealed to the responsible bishop, Archbishop Conrad I of Salzburg, for an injunction to re-merge. After an arbitration awarded by Conrad in 1136 the separation of the two monasteries as wished by Berengar was reaffirmed, and in 1142 reconfirmed by Pope Innocent II. The Baumburg claims were dismissed as the "simple-minded opinion of certain brothers".
Early years
During the tenure of Gottschalk as provost of the Baumburg Abbey a church of St. Nicholas was consecrated in 1129, and in 1156 the Romanesque Basilica of St. Margaret was built. Around this time the Archbishop of Salzburg made the provost of Baumburg an archdeacon. Thus he acted as deputy to the archbishop for the ecclesiastical jurisdiction, church oversight and asset management. In 1185 the Pope confirmed this function. The Augustinian canons acted primarily as pastors. The monastery was assigned the parishes of Baumburg-Altenmarkt, Sankt Georgen, Truchtlaching, Traunwalchen, Neuenchieming, Kienberg, Poing and partner churches and possessions in Lower Austria. The abbey school was also important, serving most of the sons of the regional nobility. As of 1367, the provosts were also given the rights of Abbots. Like other abbeys, in the 15th century and during the Protestant Reformation the Baumburg Abbey experienced a religious and economic decline. More than once Baumburg was placed under administration, including between 1536 and 1538 under the provost of the Berchtesgaden Abbey and later under provost Prince Wolfgang II Griesstätter zu Haslach, provost of Höglwörth Abbey and then Prince Provost of Berchtesgaden. Between 1523 and 1539 the monastery was three times devastated by fires. By 1579 there were only three canons lived in the abbey.
Later revival
With the end of the 16th Century Baumburg came back to life. The Collegiate School regained its good reputation among the nobility, and the number of canons increased again. A Baroque transformation of the formerly Gothic buildings of the congregation began in 1600 with a renovation of the medieval church. The towers received their characteristic onion domes. The provosts Michael Doegger and Patricius Stöttner led the conversion and new construction of the monastery buildings. On the occasion of the 600th anniversary of consecration in 1755 the architect Franz Alois Mayr from Trostberg built the present church of St. Margareta in the Rococo style with stucco filigrees and frescoes. The monastery was closed in 1803 during secularization by the Bavarian State. In 1812 the abbey and farm buildings as well as the abbey's properties were auctioned. The collegiate church now serves as a parish church for Altenmarkt an der Alz. Many of the monastery buildings were demolished. Since 1910 a wing of the abbey has been used as a parsonage. Another wing for a long time served as a convalescent home. Today it houses a private seminar hotel, which is often used by choirs and orchestras. The Baumberg Abbey brewery, established in 1612, is now also privately owned.