Following the Pittsburgh Agreement of May 1918, the Czechoslovak declaration of independence was published by the Czechoslovak National Council, signed by Masaryk, Štefánik and Beneš on October 18, 1918 in Paris, and proclaimed on October 28 in Prague. Towards the end of the First World War which led to the collapse of the Austrian-Hungarian Empire, several ethnic groups and territories with different historical, political, and economic traditions were blended into new state structures. In the face of such obstacles, the creation of Czechoslovak democracy was indeed a triumph.
Initial authority within Czechoslovakia was assumed by the newly created National Assembly on November 14, 1918. Because territorial demarcations were uncertain and elections impossible, the provisional National Assembly was constituted on the basis of the 1911 elections to the Austrian parliament with the addition of fifty-four representatives from Slovakia. National minorities were not represented. Hungarians remained loyal to Hungary, and on November 12, 1918, ethnic Germans of the former Empire declared the short-lived Republic of German Austria with the intent of unifying with Germany, relying on President Wilson's principle of self-determination. The National Assembly elected Tomáš Garrigue Masaryk as its first president, chose a provisional government headed by Karel Kramář, and drafted a provisional constitution.