 Dobromyl was first mentioned in 1374, as a settlement founded by the Herburt family, upon request of Polish prince Władysław Opolczyk.In 1566 it was granted Magdeburg rights by the King Sigismund I the Old.Eighteen years later, Stanislaw Herburt built a castle here, the town also had a printing shop, where in 1612 the "Annales seu cronici incliti regni Poloniae" (The Annals of Jan Długosz) were published.