The joy from the liberation was short-lived though, as the Treaty of Berlin (1878) soon partitioned the newly liberated country. Bulgaria was divided into three parts: the Principality of Bulgaria, the autonomous province of Eastern Rumelia and Macedonia given back to the Ottomans. The discontent among the people erupted in the Kresna-Razlog Uprising (1878–1879) in which Illyo took active participation. Illyo Voivoda and his band took part in Serbo-Bulgarian War despite the advancing age of the leader. As part of the Radomir squad they participated in the battles of Breznik, Slivnitsa and Vranje among others.