Electorate of Bavaria
As a result of the German mediatization, in 1803 Nördlingen lost its status as an imperial city and became part of the Electorate of Bavaria, which had occupied the city in September 1802 in anticipation of the decree. On January 1, 1806, Bavaria's Elector declared himself king, officially changing the Electorate of Bavaria into the Kingdom of Bavaria, which seceded from the Holy Roman Empire the following August.