In 1798, the Vogtei Rheintal unilaterally declared its independence. In the aftermath of the collapse of the Old Swiss Confederation resulting from the French invasion of Switzerland.