Bulgaria, in alliance with Germany, Austria-Hungary, and the Ottomans, won military victories against Serbia and Romania, taking much of Macedonia (taking Skopje in October), advancing into Greek Macedonia, and taking Dobruja from the Romanians in September 1916. However, the war soon became unpopular with the majority of Bulgarian people, who suffered great economic hardship and also disliked fighting their fellow Orthodox Christians in alliance with the Muslim Ottomans. The Agrarian Party leader, Aleksandar Stamboliyski, was imprisoned for his opposition to the war. 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. Mutinies broke out in the army, Stamboliyski was released and a republic was proclaimed.