In 1804, at the eve of the First Serbian Uprising, Glavaš, Karađorđe and several other leaders gathered at Orašac to organize the revolt (see Serbian Revolution). Glavaš was suggested as leader. He refused the offer, opting for Karađorđe instead. In December 1806, commanders Vujica, Mladen Milovanović and Glavaš commanded an army of 18,000 soldiers to defend the Serbs at the Battle of Deligrad. The fight ended in Serbian victory, with Ibrahim Bushati, pasha of Shkodër, signing a 6-week truce. He led a company of around 3,000 men which liberated Prokuplje and Kuršumlija. His company guarded the Morava Valley and fought the Ottomans in the mountains of Niš and Novi Pazar for two months before being captured. He was killed by the Ottomans on 15 February 1815, after the demise of Hadži-Prodan's Uprising. His severed head was on display at the Kalemegdan along with other Serbian leaders.