Romania delayed in entering World War I, but ultimately declared war on the Central Powers in 1916. The Romanian military campaign ended in stalemate when the Central Powers quickly crushed the country's offensive into Transylvania and occupied Wallachia and Dobruja, including Bucharest and the strategically important oil fields, by the end of 1916. In 1917, despite fierce Romanian resistance, especially at Mărăşeşti, due to Russia's withdrawal from the war following the October Revolution, Romania, being almost completely surrounded by the Central Powers, was forced to also drop from the war, signing the Armistice of Focșani and next year, in May 1918, the Treaty of Bucharest. But after the successful offensive on the Thessaloniki front which put Bulgaria out of the war, Romania's government quickly reasserted control and put an army back into the field on 10 November 1918, a day before the war ended in Western Europe. Following the proclamation of the union of Transylvania with the Kingdom of Romania on 1 December 1918 by the representatives of Transylvanian Romanians gathered at Alba Iulia, Transylvania was soon united with the Kingdom, as was Bessarabia earlier in 1918, since the power vacuum in Russia caused by the civil war there allowed the "Sfatul Țării", or National Council, to proclaim the union of Bessarabia with Romania. War with the Hungarian Soviet Republic in 1919 resulted in the occupation of Budapest by Romanian troops and the end of Béla Kun's Bolshevik regime.