According to the legend, Dobarsko was founded by soldiers from Bulgarian tsar Samuil's blinded army after the Battle of Belasitsa in 1014, who arrived in the area en route to the Rila Monastery and discovered a holy spring that allegedly cured them. Dobarsko is first mentioned in Tsar Ivan Shishman's donor's charter from the Rila Monastery in 1378.