(but no cannons and few janissaries). Zamoyski fortified his camp near Cecora at Prut river, withstood a three-day siege (17–20 October), and managed to obtain an agreement with the Ottoman Empire that recognized Movilă as hospodar (Treaty of Cecora). Moldavia became the Commonwealth's vassal and paid tribute to Constantinople at the same time (this is known as condominium—territory under rule of two sovereign powers). Not satisfied with this, previous hospodar Ștefan Răzvan invaded Moldavia, but his troops were crushed by Zamoyski and Răzvan was impaled by Movilă. 1599–1601 In 1599, Mihai Viteazul, wishing to secure his back after Sigismund Báthory's departure from the Transylvanian throne, defeated the new ruler of Transylvania, Andrew Cardinal Báthory (Andrzej Batory), who lost his life fleeing after battle, and took over Transylvania as governor on behalf of the Habsburg emperor Rudolf II. Later on, Mihai defeated Ieremia Movilă and took control over almost all of Moldavia, with the exception of Khotyn (Chocim or Hotin, a castle and a city on the right bank of the Dniester), which remained in Polish hands. Mihai used titles of voivode of Wallachia, Transylvania and Moldavia for the first time in May 1600. He tried to get recognition from Emperor Rudolf II, offered his vassalage to the Commonwealth, and organized an anti-Turkish league. After King Sigismund III Vasa (Zygmunt III Waza) refused, Mihai sent his troops to take over Pokucie (an area Moldavians were claiming to be theirs) but Commonwealth hetman Stanisław Żółkiewski met them with resistance. In 1600 Zamoyski and hetman Jan Karol Chodkiewicz gathered Commonwealth forces, returning to Moldavia, where they fought Mihai. Zamoyski defeated Mihai Viteazul near Bucov (Bukova) in Wallachia, on the Teleajen river, near present-day Ploiești, restored Ieremia Movilă to the throne, and helped his brother Simion Movilă to gain the throne in Bucharest, thus temporarily extending the sphere of Commonwealth influence south all the way to the Danube. In the meantime, Mihai Viteazul traveled to Vienna to ask for the Emperor's help, in exchange for assisting the Habsburgs against the Ottomans and Imperial influence over Moldavia, previously aligned with the Commonwealth. The Emperor promised help and in 1601 sent an army led by Giorgio Basta that was to accompany Mihai on the way back. Upon their arrival in Transylvania, after the joint victory at Gurăslău against the prince of Transylvania, Sigismund Báthory, general Basta assassinated Mihai Viteazul during the night, on the field of