In 1797, when the Treaty of Campo Formio was signed, Napoleon initially permitted Habsburg Empire to retain it, but in 1810 he added Ampezzo to the Department of Piave, following an attack on the town in which it was burned by the French.