The Commonwealth was unable to capitalize on its gains, as the Polish-Swedish War had just started and the majority of Commonwealth forces were desperately needed to protect Livonia (Inflanty). A year later, Simion Movilă was ousted from the Wallachian throne by local boyars who replaced him with Radu Șerban, with the consent of the Ottomans (relieved to see the Polish influence at the Danube diminish). The Commonwealth managed to retain control over Moldavia, and the only side not to gain anything was the Habsburgs: in fact, they lost control over all of their former possessions in the region. However, the Peace of Žitava ended the Habsburg-Ottoman conflict known as the Long War, and forced the Ottomans to recognize the Habsburgs as equals, due to the former's inability to penetrate Royal Hungary. This ended direct war between the Ottomans and the Habsburgs for decades, but the two powers still struggled for influence in the region that constitutes modern-day Romania.