Bern was occupied by French troops in 1798 during the French Revolutionary Wars, when it was stripped of parts of its territories.