Ukrainian territory was fought over by various factions after the Russian Revolution of 1917 and the First World War, which added the collapse of Austria-Hungary to that of the Russian Empire. The crumbling of the empires had a great effect on the Ukrainian nationalist movement and in the short period of four years a number of Ukrainian governments sprung up. This period was characterized by optimism and nation-building, as well as chaos and civil war. It ended in 1921, with the territory of modern-day Ukraine divided between Soviet Ukraine (which would become a constituent republic of the Soviet Union) and Poland, with small regions belonging to Czechoslovakia and Romania.