It is mentioned for the first time in 1100. After the acquisition of the Duchy of Sora by the della Rovere family, it became one of their main residences. It was also housed by their successors as dukes, the Boncompagni; in the 17th century Costanza Sforza turned into a luxurious palace, with biblica frescoes and basreliefs of the duchy's lands, as well as a garden.