 In 1625, during the First Genoese–Savoyard War, it was attacked and stormed by French-Savoy troops, but the Genoese retook it after only 21 days.It was decided to turn Gavi into a powerful fortress.After a French domination from 1804, in 1815 it was assigned to the Kingdom of Sardinia.