After the French invasion of Swiss territory in 1798 and the subsequent collapse of the Confederation, the authorities of the newly proclaimed Helvetic Republic confiscated all earlier flags, replacing them with a green-red-yellow tricolour.