The ninth Guru, Guru Tegh Bahadur, moved the Sikh community to Anandpur and travelled extensively to visit and preach in Sikh communities in defiance of Mughal rule. He aided Kashmiri Hindus in avoiding conversion to Islam and was arrested and confronted by Aurangzeb. When offered a choice between conversion or death, he chose to die and was executed.[40]