 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.Following the Nazi and Soviet Invasion of Poland (September 1939), Dobromil was transferred to the Soviet Union.