 By this means storage for over 5,000 tonnes of wheat was provided.In March 1798, Viktor von Wattenwyl, the 71st and last Landvogt, surrendered the castle to the advancing French troops.In 1803 the Canton of Aargau was founded, and a year later the castle passed into its possession.