Confederation of the Rhine
The formal mediatisation of the imperial knights and counts was legalized by Article 25 of the Treaty of the Confederation of the Rhine (Rheinbundakte), which sanctioned unilateral action by territorial states.