In 1298, the town and castle were destroyed by Bern after the Bernese victory at the Battle of Donnerbühl. In 1306, the Lords of Bremgarten sold their land, rights and their ferry, to the Knights Hospitaller commandry of Münchenbuchsee. Under the Commandery, the town and castle were rebuilt and the castle became the seat of the commander. In 1510 the lands in Bremgarten were sold to the Stuckihaus Commandery to hold as a fief. Following the Protestant Reformation, the Commandery was secularized in 1529 and its land became part of Bern. The last commander of Münchenbuchsee Commandry retired to Bremgarten Castle for the remainder of his life. Bremgarten was assigned to the high court of Zollikofen. Much of the land that had been part of the Barony of Bremgarten was broken up to form new municipalities. In 1545, Bern sold the village and low court right to the Schultheiss Hans Franz Nageli. He demolished the old castle, except for the keep and curtain walls, and had a renaissance country manor built. Over the following centuries the castle and land was repeatedly inherited, bought and sold by Bern's patrician families. It was held in 1579-92 by the Brügger family, 1592-1727 by the Kilchberger, 1727-43 by the de Chemilleret, 1743-61 by the von Wattenwyl and in 1761-65 by Fischer von Reichenbach. In 1743-47 the medieval keep and ramparts of the castle were demolished to make way for a baroque summer palace. Starting in 1765, the new owner Albrecht von Frisching, encouraged many tenants and craftsmen to settle in Bremgarten to help him rebuild the castle. By 1780 the project was finished and the castle was completely rebuilt. He had the castle hill built up and leveled to create a spacious courtyard and gardens around the castle. In 1770-71 the country estates of Belvedere (Friedrich von Luternau) and Aarwyl (Rudolf Albrecht Haller) were built in Bremgarten.