Conquered back by Venice, it was ravaged by the troops of Habsburg Emperor Maximilian I in 1513, who destroyed the Rocca fortress. In 1521 it was returned to the Republic of Venice, under which it remained until its dissolution by the 1797 Treaty of Campo Formio.