Confederation of the Rhine
After having narrowly escaped mediatization to Bavaria in 1806, Liechtenstein became a sovereign state later that year when it joined Napoleon's Confederation of the Rhine upon the dissolution of the Holy Roman Empire.