From 1783 to 1918 the region of Idrija was part of Austria-Hungary. After World War II, it was annexed to Italy. Under Italian rule (1918–1943), the area that is now the Municipality of Idrija was a "comune" of the Province of Gorizia (as "Idria").