By 1918, at the end of World War I, almost two million Danube Swabians and other German-speaking peoples lived in what is now Hungary, Romania, Croatia, Slovakia and the former Yugoslav republics. Between 1918 and 1945 several factors greatly reduced the number of German-speaking residents in the kingdom so much that only thirty percent of the original German-speaking population was left after World War II. The number of Germans in the Hungarian kingdom was more than halved by the Treaty of Trianon in 1920, as the kingdom was forced to make large cessions of its territory to neighboring countries.