The Helvetic Republic had been set up by France when it invaded Switzerland in 1798. France had withdrawn its troops, but violent strife broke out against the government, which many Swiss saw as overly centralised. Bonaparte reoccupied the country in October 1802 and imposed a compromise settlement. This caused widespread outrage in Britain, which protested that this was a violation of the Treaty of Lunéville. Although continental powers were unprepared to act, the British decided to send an agent to help the Swiss obtain supplies, and also ordered their military not to return Cape Colony to Holland as they had committed to do in the Treaty of Amiens.