The end of World War I (1914-1918) led to the Second Polish Republic (1918-1939) until the Nazi Invasion of Poland and occupation (1939-1945).