The Mughal Emperor, Aurangzeb cherished the ambition of converting India into a land of Islam. This philosophy was also pleaded by Shaikh Ahmad Sirhindi (1569–1624), leader of the Naqashbandi School, to counter the liberal policies of Akbar's reign.
The Emperor's experiment was carried out in Kashmir. The viceroy of Kashmir, Iftikar Khan (1671–1675) carried out the policy vigorously and set about converting non-Muslims by force.
A group of Kashmiri Pandits (Kashmiri Hindu Brahmins), approached Guru Tegh Bahadur and asked for help. They, on the advice of the Guru, told the Mughal authorities that they would willingly embrace Islam if Guru Tegh Bahadur, did the same.
Orders of the arrest of the Guru were issued by Aurangzeb, who was in present day North West Frontier Province of Pakistan subduing Pushtun rebellion. The Guru was arrested at a place called Malikhpur near Anandpur after he had departed from Anandpur for Delhi. Before departing he nominated his son, Gobind Rai (Guru Gobind Singh) as the next Sikh Guru.
He was arrested, along with some of his followers, Bhai Dayala, Bhai Mati Das and Bhai Sati Das by Nur Muhammad Khan of the Rupnagar police post at the village Malikhpur Rangharan, in Ghanaula Parganah, and sent to Sirhind the following day. The Faujdar (Governor) of Sirhind, Dilawar Khan, ordered him to be detained in Bassi Pathana and reported the news to Delhi. His arrest was made in July 1675 and he was kept in custody for over three months. He was then cast in an iron cage and taken to Delhi in November 1675.
The Guru was put in chains and ordered to be tortured until he would accept Islam. When he could not be persuaded to abandon his faith to save himself from persecution, he was asked to perform some miracles to prove his divinity. On his refusal, Guru Tegh Bahadur was beheaded in public at Chandni Chowk on 24 November 1675. Guru Ji is also known as "Hind Di Chadar" i.e. "the shield of India", suggesting that to save Hinduism, Guru Ji gave his life.