During the Cretan War (1645–1669), the Ottomans besieged the city for 21 years, from 1648 to 1669, the longest siege in history up until that time. In its final phase, which lasted for 22 months, 70,000 Turks, 38,000 Cretans and slaves and 29,088 of the city's Christian defenders perished. The Ottoman army under an Albanian grand vizier, Köprülü Fazıl Ahmed Pasha conquered the city in 1669.