During the Kościuszko Uprising in 1794 he was a major general and a divisional commander. At the Battle of Szczekociny he saved Kościuszko's life. Then during the siege of Warsaw he was wounded.