Despite the outstanding victories, Germany was near defeat, which meant that Bulgaria would be left without its most powerful ally. The Russian Revolution of February 1917 had a great effect in Bulgaria, spreading antiwar and anti-monarchist sentiment among the troops and in the cities. In June Radoslavov's government resigned. In 1919 Bulgaria officially left the war with the Treaty of Neuilly-sur-Seine.