The first settlement, Daugavgrīva Abbey, was established on the right bank of the Daugava river, 13 miles from Bishop Albert of Riga's residence in Riga, by Cistercian monks from Pforta in 1205. Theoderich von Treyden was an early abbot, while during the 1210s Count Bernhard II of Lippe was its abbot. During a raid of tribal Curonians in 1228, the monastery and its tombs were destroyed, although the monks rebuilt the abbey after fighting died down. They also had to endure abuse by the undisciplined crusaders of the Livonian Order. Those knights were defeated at the Battle of Saule, however, and their remnants were incorporated into the Teutonic Knights in 1237. Until 1452 the territory of Siggelkow in Mecklenburg was owned by the monastery. In 1305, the local abbot sold the monastery to the Livonian Branch of the Teutonic Knights, who began construction of the fortress of Dünamünde.