 On September 1, 1770 he joined the Cadet Corps of the Polish Army and in 1776 he became a chorąży in the Rydzyna Regiment of August Sułkowski.He quickly rose through the ranks, partially thanks to his family's wealth.In 1786 he held the rank of Staff Captain.