the ruler agreed to pay tribute to Sultan Mehmed II. Late Middle Ages Under Stephen the Great, who took the throne and subsequently came to an agreement with Casimir IV of Poland in 1457, the state reached its most glorious period. Stephen blocked Hungarian interventions in the Battle of Baia, invaded Wallachia in 1471, and dealt with Ottoman reprisals in a major victory (the 1475 Battle of Vaslui); after feeling threatened by Polish ambitions, he also attacked Galicia and resisted a Polish invasion in the Battle of the Cosmin Forest (1497). However, he had to surrender Chilia (now Kiliia) and Cetatea Albă (now Bilhorod-Dnistrovskyi), the two main fortresses in the Budjak, to the Ottomans in 1484, and in 1498 he had to accept Ottoman suzerainty, when he was forced to agree to continue paying tribute to Sultan Bayezid II. Following the taking of Hotin (Khotyn) and Pokuttya, Stephen's rule also brought a brief extension of Moldavian rule into Transylvania: Cetatea de Baltă and Ciceu became his fiefs in 1489. Early Modern Era and Renaissance Under Bogdan III the One-Eyed, Ottoman overlordship was confirmed in the shape that would rapidly evolve into control over Moldavia's affairs. Peter IV Rareș, who reigned in the 1530s and 1540s, clashed with the Habsburg monarchy over his ambitions in Transylvania (losing possessions in the region to George Martinuzzi), was defeated in Pokuttya by Poland, and failed in his attempt to extricate Moldavia from Ottoman rule – the country lost Bender to the Ottomans, who included it in their Silistra Eyalet. A period of profound crisis followed. Moldavia stopped issuing its own coinage circa 1520, under Prince Ștefăniță, when it was confronted with rapid depletion of funds and rising demands from the Porte. Such problems became endemic when the country, brought into the Great Turkish War, suffered the impact of the stagnation of the Ottoman Empire; at one point, during the 1650s and 1660s, princes began relying on counterfeit coinage (usually copies of Swedish riksdalers, as was that issued by Eustratie Dabija). The economic decline was accompanied by a failure to maintain state structures: the feudal-based Moldavian military forces were no longer convoked, and the few troops maintained by the rulers remained professional mercenaries such as the seimeni. However, Moldavia and the similarly affected Wallachia remained both important sources of income for the Ottoman Empire and relatively prosperous agricultural economies (especially as suppliers of grain and