The kingdom existed until 1918 when it joined the newly formed State of Slovenes, Croats and Serbs, which together with the Kingdom of Serbia formed the Kingdom of Serbs, Croats and Slovenes. 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 Banate and in 1939 autonomous Croatian Banate (Banovina of Croatia).