Catholicism lost its influence after the second Villmerger War of 1712. Bremgarten became part of the area of Zürich, Bern and Glarus. During the French Revolution, it became for a short time host to Louis-Philippe, who sought refuge from the revolutionaries. Marshal André Masséna moved into Bremgarten, along with his headquarters, before his troops defeated those of Russia and Austria near Zürich. During the time of the Helvetic Republic, Bremgarten became part of the short-lived Canton of Baden. In 1803 it joined the canton of Aargau.