what was the original purpose of the khalsa
Khalsa Guru Gobind Singh started the Khalsa tradition after his father had been beheaded for resisting the religious persecution of non-Muslims (mainly Kashmiri Hindus) during the rule of the Mughal Emperor Aurangzeb.[6][7][8] Guru Gobind Singh created and initiated the Khalsa as a warrior with a duty to protect the innocent from any form of religious persecution.[9] The Khalsa redefined the Sikh tradition from the start. It formulated an initiation ceremony (amrit pahul, nectar ceremony) and rules of conduct for the Khalsa warriors. It created a new institution for the temporal leadership of the Sikhs, replacing the masands system maintained by the earlier Gurus of Sikhism. Additionally, the Khalsa provided a political and religious vision for the Sikh community.[1][10][11]:127