 He was also a member of the Royal Council since January 1658.He participated in the Second Northern War as commander of the Transylvanian troops which helped the Cossacks against the Polish Army.The Ottoman Empire did not tolerate its vassal the Principality of Transylvania's autonomous foreign policy, therefore started a punitive campaign against Rákóczi.