Germany suffered significant territorial losses from the Treaty of Versailles following World War I, and some states had their borders altered by international border changes. In 1920, the state of Thuringia was formed from the former Ernestine duchies that continued briefly as republics before merging, except for Saxe-Coburg, which became part of Bavaria. Additionally, the Saar Basin and the city of Danzig were detached from Germany and placed in the care of the League of Nations.