 Between the 9th and 10th centuries, the settlement suffered invasions by Saracen pirates, along with other coastal towns.The village experienced a boost to its economy when Benedictine monks from Piedmont introduced the cultivation of olive trees in the 11th century, which consequently led to the production of olive oil.During the same century, the Dianese territory became a feudal dominion of the Marquises of Clavesana until 1177, when a free and autonomous municipality was formed.