In 1918, during the last days of World War I, the Croatian parliament abolished the Hungarian–Croatian personal union, and both parts of the Kingdom of Croatia and Slavonia and the Kingdom of Dalmatia (excluding Zadar and Lastovo), became part of the State of Slovenes, Croats and Serbs, which together with the Kingdom of Serbia, formed the Kingdom of Serbs, Croats and Slovenes (later known as the Kingdom of Yugoslavia). The new Serb–Croat–Slovene Kingdom was divided into counties between 1918 and 1922 and into oblasts between 1922 and 1929. With the formation of the Kingdom of Yugoslavia in 1929, most of the territory of the former Kingdom of Croatia–Slavonia became a part of the Sava Banovina, and most of the former Kingdom of Dalmatia became part of the Littoral Banovina.