 In 1183 Pope Lucius III gave it to the Cistercian monks of St. Anastasius of "Aquae Salviae" in Rome.In 1235 they built a large castle around which the town later grew.In 1378 the Popes assigned it to Giordano Orsini.