The Romanian military campaign ended in disaster after Romania's forces were stopped in 1917. Many died. Moldova was one of the few parts of Romania that was not captured when it stopped its attackers in 1917. The Allies won the war, Austria-Hungary had been weakened, and an independent Hungarian republic was proclaimed. As promised, Bessarabia, Bukovina and Transylvania became part of the Kingdom of Romania in 1918. After the Treaty of Trianon in 1920, Hungary, as agreed, gave up the claims of the Austro-Hungarian Monarchy 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.