On 28 December 1795 Sassari insurgents demonstrating against feudalism, mainly from the region of Logudoro, occupied the city. On 13 February 1796, in order to prevent the spread of the revolt, the viceroy Filippo Vivalda gave the Sardinian magistrate Giovanni Maria Angioy the role of Alternos, which meant a substitute of the viceroy himself. Angioy moved from Cagliari to Sassari, and during his journey almost all the villages joined the uprising, demanding an end to feudalism and aiming to declare the island to be an independent republic, but once he was outnumbered by loyalist forces he fled to Paris and sought support for a French annexation of the island.