Ferdinand II of Aragon and Isabel of Castile, the "Kingdom of Sardinia" (which was separated from Corsica) became Spanish, with the state symbol of the Four Moors. Following the failure of the military ventures against the Muslims of Tunis (1535) and Algiers (1541), Charles V of Spain, in order to defend his Mediterranean territories from pirate raids by the African Berbers, fortified the Sardinian shores with a system of coastal lookout towers.
The Kingdom of Sardinia remained Spanish for approximately 400 years, from 1323 to 1720, assimilating a number of Spanish traditions, customs and linguistic expressions, nowadays vividly portrayed in the folklore parades of Saint Efisio in Cagliari (May 1), the Cavalcade on Sassari (last but one Sunday in May), and the Redeemer in Nuoro (August 28).
Many famines have been reported in Sardinia. According to Stephen L. Dyson and Robert J. Rowland, "The Jesuits of Cagliari recorded years during the late 16th century "of such hunger and so sterile that the majority of the people could sustain life only with wild ferns and other weeds" ... During the terrible famine of 1680, some 80,000 people, out of a total population of 250,000, are said to have died, and entire villages were devastated..."
In 1708, as a consequence of the Spanish War of Succession, the rule of the Kingdom of Sardinia passed into the hands of the Austrians who occupied the island. In 1717 Cardinal Giulio Alberoni, minister of Philip V of Spain, reoccupied Sardinia. In 1718, with the Treaty of London, Sardinia was handed over to the House of Savoy.
On 28 April 1794, during an uprising in Cagliari, two Piedmontese officials were killed. That was the start of a revolt (called the "Moti rivoluzionari sardi") all over the island, which culminated in the expulsion of the tyrants. On 28 December 1795 in Sassari insurgents demonstrating against feudalism, mainly from the region of Logudoro, occupied the city. On 13 February 1796, in order