Following the end of World War I, a German National Assembly gathered in the town of Weimar, in the state of Thuringia, in January 1919 to write a constitution for the "Reich". The nation was to be a democratic federal republic, governed by a president and parliament.