 In 1772, Dobromil was annexed by the Habsburg Empire, and until 1918 belonged to Austrian Galicia.After World War I, the town returned to Poland, and in the Second Polish Republic, was the seat of a county in Lwów Voivodeship.In 1921 its population was 5386.