A French army under General Guillaume Brune occupied much of Switzerland. The Helvetian Republic was proclaimed on 12 April 1798. On 26 August 1798, Geneva was detached from the new republic and made part of France. The treasury of Bern was seized, and, like the treasury of the Vatican, was used to finance Bonaparte's expedition to Egypt.