Until 1945 Sondheim was an enclave of Saxe-Weimar and later Thuringia, and was added to Bavaria due to the military administration after World War II.
Sondheim remained an independent entity until 1945, belonging to Saxe-Weimar and Thuringia. Following World War II, it was annexed by Bavaria under military administration.