In the Middle Ages, it was first part of the Duchy of Friuli and in the 13th century it was included in the County of Gorizia. Komen was first mentioned in a document from 1247. In 1500, the whole region fell under Habsburg dominion and it was included in the County of Gorizia and Gradisca until 1918. During World War I, the western parts of the municipality were devastated by the Battles of the Isonzo. After the end of the war in November 1918, the area was occupied by Italian troops and annexed to Italy with the Treaty of Rapallo in 1920. On February 15, 1944, the village of Komen was burned down by the Nazi German troops as retaliation for Partisan resistance activity in the area; the surviving inhabitants were forcibly resettled to Bavaria, from where they only returned after the end of World War II. In 1947, it became part of Yugoslavia and in 1991 of independent Slovenia.