Bulgaria gained independence in 1878 as the Principality of Bulgaria.

An excerpt from the article 34 facts about Bulgaria

The first ruler of the Principality of Bulgaria was Alexander I of Battenberg. The state gained full independence in 1908, after the official annexation of Eastern Rumelia (a former autonomous state in the Balkans) as the Empire of Bulgaria, and its ruler declared himself tsar.