Stagnation and reform (1566–1827) Revolts, reversals, and revivals (1566–1683): In the second half of the sixteenth century, the Ottoman Empire came under increasing strain from inflation and the rapidly rising costs of warfare that were impacting both Europe and the Middle East. These pressures led to a series of crises around the year 1600, placing great strain upon the Ottoman system of government. The empire underwent a series of transformations of its political and military institutions in response to these challenges, enabling it to successfully adapt to the new conditions of the seventeenth century and remain powerful, both militarily and economically. Historians of the mid-twentieth century once characterised this period as one of stagnation and decline, but this view is now rejected by the majority of academics. The discovery of new maritime trade routes by Western European states allowed them to avoid the Ottoman trade monopoly. The Portuguese discovery of the Cape of Good Hope in 1488 initiated a series of Ottoman-Portuguese naval wars in the Indian Ocean throughout the 16th century. Despite the growing European presence in the Indian Ocean, Ottoman trade with the east continued to flourish. Cairo, in particular, benefitted from the rise of Yemeni coffee as a popular consumer commodity. As coffeehouses appeared in cities and towns across the empire, Cairo developed into a major center for its trade, contributing to its continued prosperity throughout the seventeenth and much of the eighteenth century. Under Ivan IV (1533–1584), the Tsardom of Russia expanded into the Volga and Caspian regions at the expense of the Tatar khanates. In 1571, the Crimean khan Devlet I Giray, commanded by the Ottomans, burned Moscow. The next year, the invasion was repeated but repelled at the Battle of Molodi. The Ottoman Empire continued to invade Eastern Europe in a series of slave raids,[80] and remained a significant power in Eastern Europe until the end of the 17th century. The Ottomans decided to conquer Venetian Cyprus and on 22 July 1570, Nicosia was besieged; 50,000 Christians died, and 180,000 were enslaved. On 15 September 1570, the Ottoman cavalry appeared before the last Venetian stronghold in Cyprus, Famagusta. The Venetian defenders would hold out for 11 months against a force that would come to number 200,000 men with 145 cannons; 163,000 cannonballs struck the walls of Famagusta before it fell to the Ottomans in August 1571. The Siege of Famagusta claimed 50,000 Ottoman casualties. Meanwhile, the Holy League consisting of mostly Spanish and Venetian fleets won a victory over the Ottoman fleet at the Battle of Lepanto (1571), off southwestern Greece; Catholic forces killed over 30,000 Turks and destroyed 200 of their ships. It was a startling, if mostly symbolic, blow to the image of Ottoman invincibility, an image which the victory of the Knights of Malta over the Ottoman invaders in the 1565 siege of Malta had recently set about eroding. The battle was far more damaging to the Ottoman navy in sapping experienced manpower than the loss of ships, which were rapidly replaced. The Ottoman navy recovered quickly, persuading Venice to sign a peace treaty in 1573, allowing the Ottomans to expand and consolidate their position in North Africa. By contrast, the Habsburg frontier had settled somewhat, a stalemate caused by a stiffening of the Habsburg defenses. The Long Turkish War against Habsburg Austria (1593–1606) created the need for greater numbers of Ottoman infantry equipped with firearms, resulting in a relaxation of recruitment policy. This contributed to problems of indiscipline and outright rebelliousness within the corps, which were never fully solved. Irregular sharpshooters (Sekban) were also recruited, and on demobilisation turned to brigandage in the Celali rebellions (1590–1610), which engendered widespread anarchy in Anatolia in the late 16th and early 17th centuries. With the Empire’s population reaching 30 million people by 1600, the shortage of land placed further pressure on the government. In spite of these problems, the Ottoman state remained strong, and its army did not collapse or suffer crushing defeats. The only exceptions were campaigns against the Safavid dynasty of Persia, where many of the Ottoman eastern provinces were lost, some permanently. This 1603–1618 war eventually resulted in the Treaty of Nasuh Pasha, which ceded the entire Caucasus, except westernmost Georgia, back into the possession of Safavid Iran. The treaty ending the Cretan War cost Venice much of Dalmatia, its Aegean island possessions, and Crete. (Losses from the war totalled 30,985 Venetian soldiers and 118,754 Turkish soldiers.) During his brief majority reign, Murad IV (1623–1640) reasserted central authority and recaptured Iraq (1639) from the Safavids. The resulting Treaty of Zuhab of that same year decisively divided the Caucasus and adjacent regions between the two neighbouring empires as it had already been defined in the 1555 Peace of Amasya. The Sultanate of Women (1533–1656) was a period in which the mothers of young sultans exercised power on behalf of their sons. The most prominent women of this period were Kösem Sultan and her daughter-in-law Turhan Hatice, whose political rivalry culminated in Kösem’s murder in 1651. During the Köprülü era (1656–1703), effective control of the Empire was exercised by a sequence of grand viziers from the Köprülü family. The Köprülü Vizierate saw renewed military success with authority restored in Transylvania, the conquest of Crete completed in 1669, and expansion into Polish southern Ukraine, with the strongholds of Khotyn, and Kamianets-Podilskyi and the territory of Podolia ceding to Ottoman control in 1676. This period of renewed assertiveness came to a calamitous end in 1683 when Grand Vizier Kara Mustafa Pasha led a huge army to attempt a second Ottoman siege of Vienna in the Great Turkish War of 1683–1699. The final assault being fatally delayed, the Ottoman forces were swept away by allied Habsburg, German, and Polish forces spearheaded by the Polish king John III Sobieski at the Battle of Vienna. The alliance of the Holy League pressed home the advantage of the defeat at Vienna, culminating in the Treaty of Karlowitz (26 January 1699), which ended the Great Turkish War. The Ottomans surrendered control of significant territories, many permanently.nMustafa II (1695–1703) led the counterattack of 1695–1696 against the Habsburgs in Hungary, but was undone at the disastrous defeat at Zenta (in modern Serbia), 11 September 1697.