 After World War I and the dissolution of Austria-Hungary, the town was annexed to the Kingdom of Italy and incorporated into the Province of Trieste.In the 1930s, the area developed a strong Communist underground activity against Benito Mussolini's Fascist regime.In 1945, it was occupied by the Yugoslav People's Army and from 1947 to 1954 it was part of the Free Territory of Trieste, a formally independent territory directly administered by the United Nations.