and to avoid battles with Sivalik Hill rajas moved the guruship to Paunta. There he built a large fort to protect the city and garrisoned an army to protect it. The growing power of the Sikh community alarmed the Sivalik Hill rajas who attempted to attack the city but Guru Gobind Singh's forces routed them at the Battle of Bhangani. He moved on to Anandpur and established the Khalsa, a collective army of baptised Sikhs, on 30 March 1699. The establishment of the Khalsa united the Sikh community against various Mughal-backed claimants to the guruship. In 1701, a combined army of the Sivalik Hill rajas and the Mughals under Wazir Khan attacked Anandpur. The Khalsa retreated but regrouped to defeat the Mughals at the Battle of Muktsar. In 1707, Guru Gobind Singh accepted an invitation by Aurangzeb's successor Bahadur Shah I to meet him. The meeting took place at Agra on 23 July 1707. Banda Singh Bahadur In August 1708, Guru Gobind Singh visited Nanded. There he met a Bairāgī recluse, Madho Das, who converted to Sikhism, rechristened as Banda Singh Bahadur. A short time before his death, Guru Gobind Singh ordered him to reconquer Punjab region and gave him a letter that commanded all Sikhs to join him. After two years of gaining supporters, Banda Singh Bahadur initiated an agrarian uprising by breaking up the large estates of Zamindar families and distributing the land to the poor peasants who farmed the land. Banda Singh Bahadur started his rebellion with the defeat of Mughal armies at Samana and Sadhaura and the rebellion culminated in the defeat of Sirhind. During the rebellion, Banda Singh Bahadur made a point of destroying the cities in which Mughals had been cruel to the supporters of Guru Gobind Singh. He executed Wazir Khan in revenge for the deaths of Guru Gobind Singh's sons and Pir Budhu Shah after the Sikh victory at Sirhind. He ruled the territory between the Sutlej river and the Yamuna river, established a capital in the Himalayas at Lohgarh and struck coinage in the names of Guru Nanak and Guru Gobind Singh. In 1716, his army was defeated by the Mughals after he attempted to defend his fort at Gurdas Nangal. He was captured along with 700 of his men and sent to Delhi, where they were all tortured and executed after refusing to convert to Islam. Dal Khalsa period Sikh