Köprülü withdrew his troops from the principality only after the head of the Prince's Council, Ákos Barcsay was elected prince by the Diet on 7 October. A civil war broke out, with Rákóczi seeking Leopold I's support and Barcsay urging the Ottomans to intervene. Rákóczi who was fatally wounded fighting against the Ottomans died on 7 Juny 1660, but the Ottomans soon imprisoned Barcsay to secure the collection of a large indemnity for costs of the war.
Köprülü withdrew his troops from the principality only after Ákos Barcsay was elected prince by the Diet on 7 October. A conflict arose, with Rákóczi seeking Leopold I's support and Barcsay urging the Ottomans to participate. Rákóczi died in combat against the Ottomans on 7 June 1660, but the Ottomans soon imprisoned Barcsay to secure a substantial indemnity for war expenses.