He took part in the Smolensk War and in 1634 was briefly held prisoner by the Russians. In 1639 he became secretary to the hetman of Lithuania - he was also later Royal Secretary. From 1648 to 1650 he took part in suppressing the Khmelnytsky Uprising. During the Swedish invasion he accompanied John II Casimir Vasa to Silesia and he became the only Lithuanian official to sign the Łańcut Confederation. In 1653 he became castellan of Smolensk and in 1656 voivode of Vitebsk.