 In 1277 it was destroyed by the Ghibellines, then rebuilt by the Provençal Guillaume Durand in 1284 and christened Castel Durante.Later it was ruled by the Brancaleoni family.When the latter were ousted, the city offered itself to the Dukes of Urbino, who used the palace in the city as summer residence and had it restored by architects such as Francesco di Giorgio Martini.