 When in May 1600, Michael the Brave removed Ieremia Movilă from Moldavia's throne by winning the battle of Bacău, briefly reuniting under his rule Moldavia, Wallachia, and Transylvania, a Polish army led by Jan Zamoyski drove the Wallachians from Moldavia.Zamoyski reinstalled Ieremia Movilă to the throne, who put the country under the vassalage of the Polish–Lithuanian Commonwealth.Moldavia finally returned to Ottoman vassalage in 1621.