During the 1792 war with Russia, he was a major of the 5th Regiment of Fusiliers. In 1794, during the Kościuszko Uprising, as the adjutant he stayed in surrounding the king. After the Third Partition he kept which company in Hrodna and Saint Petersburg.