the military campaign ended in disaster after romania's forces were defeated in 1917 and moldova was one of the few parts of romania that was not captured. when the allies eventually won the war, the austria-hungarian empire was dissolved and an independent hungarian republic was proclaimed. bessarabia, bukovina, and transylvania became part of the kingdom of romania in 1918 as had been promised. after the treaty of trianon in 1920, hungary formally gave up any claims over transylvania. romania and bukovina were joined together in 1919 as a result of the treaty of saint germain. bessarabia joined with romania in 1920 when the treaty of paris was signed.