Following the French invasion of Switzerland in 1798, Rolle became the seat of a district of the same name. In 1799 the Helvetic Republic bought the castle from the municipality and used it until 1974 as the seat of government. In 1802, during the Bourla-papey uprising, patrician land titles and tax records were burned in the archives at Rolle Castle.