On 6 June 1794 Głowacki took part in the Battle of Szczekociny. Polish forces, 15,000 strong, were defeated by a combined Prussian and Russian army, some 27,000 strong. Głowacki was among the 346 Polish wounded evacuated from battle, but his wounds were too serious, and he died soon afterwards (sometime between 6 and 9 June). He was probably buried in the Church of Najjaśniejsza Maria Panna in Kielce on 9 June.