Romania entered WWI on August 27, 1916, on the Allied side, suffering brutal fighting on the Eastern Front. Initially defeated and occupied by Central Powers for nearly three years, Romania was liberated after the Allied victory in 1918. Through the Treaty of Trianon, it gained Transylvania and most of Banat from Austria-Hungary, Bukovina from the dissolved Austro-Hungarian Empire, and Bessarabia from Russia. These gains nearly doubled Romania's territory and population (from 7.9 million to 16 million), establishing it as a major regional power.