At the fall of the "Serenissima" (1797) Perasto was the last city of the Repubblic to lower the Venetian flag. On 12 May 1797, the Republic of Venice ended, but a few places in the Albania veneta for several months still continued to remain loyal to the Venetian Repubblic: Perasto was the last place of the Republic to surrender. On 22 August 1797 the Count Giuseppe Viscovich, Captain of Perasto lowered the Venetian war-flag of the Lion of Saint Mark pronouncing the farewell words in front of the crying people of the city and buried the "Gonfalon of Venice" under the altar of the main church of Perasto.