to purchase his further independence by paying a tribute of 5000 ducats. With the peace of 1540, Venice ceded Nauplia and Monemvasia. For nearly 150 years afterwards, Venice ruled no part of the mainland of Greece except Parga and Butrinto (subordinate politically to the Ionian Islands), but it still retained its insular dominions Cyprus, Crete, Tenos and six Ionian islands. First Ottoman period (1540–1687) The island was attacked and left desolate by Francesco Morosini during the Cretan War (1654). Second Venetian period (1687–1715) In 1684, the beginning of the Morean War between Venice and the Ottoman Empire resulted in the temporary reconquest of a large part of the country by the Republic. In 1687 the Venetian army arrived in Piraeus and captured Attica. The number of the Athenians at that time exceeded 6,000, the Albanians from the villages of Attica excluded, whilst in 1674 the population of Aegina did not seem to exceed 3,000 inhabitants, two thirds of which were women. The Aeginetans had been reduced to poverty to pay their taxes. The most significant plague epidemic began in Attica during 1688, an occasion that caused the massive migration of Athenians toward the south; most of them settled in Aegina. In 1693 Morosini resumed command, but his only acts were to refortify the castle of Aegina, which he had demolished during the Cretan war in 1655, the cost of upkeep being paid as long as the war lasted by the Athenians, and to place it and Salamis under Malipiero as Governor. This caused the Athenians to send him a request for the renewal of Venetian protection and an offer of an annual tribute. He died in 1694 and Zeno was appointed at his place. In 1699, thanks to English mediation, the war ended with the peace of Karlowitz by which Venice retained possession of the 7 Ionian islands as well as Butrinto and Parga, the Morea, Spinalonga and Suda, Tenos, Santa Maura and Aegina and ceased to pay a tribute for Zante, but which restored Lepanto to the Ottoman sultan. Cerigo and Aegina were united administratively since the peace with Morea, which not only paid all the expenses of administration but furnished a substantial balance for the naval defence of Venice, in which it was directly interested. Second Ottoman period (1715–1821) During the early part of the Ottoman–Venetian War of 1714–1718 the Ottoman Fleet commanded by Canum Hoca captured Aegina.