Dobromyl (Ukrainian: Добромиль, Polish: Dobromil) is a city in Staryi Sambir Raion, Lviv Oblast, Ukraine. It is located at around 49°34′N 22°47′E / 49.567°N 22.783°E / 49.567; 22.783Coordinates: 49°34′N 22°47′E / 49.567°N 22.783°E / 49.567; 22.783, some 5 kilometers to the border with Poland. Population: 4,457 (2013 est.).
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 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 Dlugosz) were published. Until the Partitions of Poland (1772), Dobromil was part of Przemysl Land, Ruthenian Voivodeship. In the course of time, the branch of the Herburt family which resided in the town changed its name into Dobromilski.
In 1772, Dobromil was annexed by the Habsburg Empire, and until 1918 belonged to Austrian Galicia. After World War One, the town returned to Poland, and in the Second Polish Republic, was the seat of a county in Lwow Voivodeship. In 1921 its population was 5386. Following the Nazi and Soviet Invasion of Poland (September 1939), Dobromil was transferred to the Soviet Union. In June 1941, Soviet NKVD murdered here hundreds of prisoners (see NKVD prisoner massacres).