 He began his military career in the regiment of Stanisław Koniecpolski.He fought at Khotyn (Chocim) in 1673 and gained the rank of captain the same year.From 1674, he served under Aleksander Niezabitowski .