Gavi was built by incorporating a pre-existing castle built, according to legend, at the time of the Saracen occupations and anointed by Princess Gavia who had established her residence in that location. The first document that testifies to the existence of the castle is a notarial act dating back to the year 973.
The castle remained the property of the Genoese, albeit with ups and downs, at least until 1418 when it passed first to the Milanese Lordship of the Visconti, then to the Fregoso family and finally to the Alexandrian Guasco, lords of Francavilla.
Over the centuries the transformation from castle to fort has been slow but constant: the first radical interventions on the original structure were made in 1540 by the military engineer in the service of the Republic Giovanni Maria Olgiati.Disarmed in 1859, the fort was transformed into a civil penitentiary. During the First World War it was used as a prison camp for the Austro-Hungarians, while during the Second World War it was used as a prison camp for Anglo-American officers. The fortress can be visited in the various main rooms.
References:The Villa d'Este is a 16th-century villa in Tivoli, near Rome, famous for its terraced hillside Italian Renaissance garden and especially for its profusion of fountains: the extraordinary system contains fifty-one fountains and nymphaeums, 398 spouts, 364 water jets, 64 waterfalls, and 220 basins, fed by 875 meters of canals, channels and cascades, and all working entirely by the force of gravity, without pumps. It is now an Italian state museum, and is listed as a UNESCO world heritage site.
Tivoli had been a popular summer residence since ancient Roman times due to its altitude, cooler temperatures and its proximity to the Villa Hadriana, the summer residence of the Emperor Hadrian I.
The Villa was commissioned by Cardinal Ippolito II d'Este (1509-1572), second son of Alfonso I d'Este, the Duke of Ferrara and grandson of Pope Alexander VI, along with Lucrezia Borgia.