After many years of war against the Mughal troops and persecution of Aurangzeb, the sacred Sri Guru Granth Sahib: The Holy Book was the ultimate successor as perpetual guru.
He wrote the Dasam Granth, which is a collection of sacred texts, but should not be confused with the Guru Granth Sahib. There was a form of amrit before its introduction by the tenth guru, the charnamrit and the devotees had to drink water used to wash the feet of him if he wished to be regarded as guru. Guru Gobind Singh put an end to this practice.
The guru therefore decided to establish the Khande di pahul or Amrit Sanchar. This action would also allow him to fundamentally differentiate a Sikh from a Hindu or a Muslim. The Sikhs had until then no specific rituals marking the entrance into the community.
On April 14, 1699 at Keshgarh Sahib, today one of five Takhts, the guru instituted the baptism ceremony. For this he chose five Sikhs, Panj Piare, who become the five beloved. He baptized them and then asked himself to five of the Amrit Sanskar offer. From Gobind Rai, he became Gobind Singh. Since that day, all Sikhs are called Singh (lion) for men and Kaur (Princess) for women. They all need to follow the Rehat Maryada (code of conduct) and wear the Five K.
Shortly before his death, the ninth guru received delegation of 500 Brahmins from Kashmir, who the Mughal Emperor Aurangzeb ordered to convert to Islam or face death. This is a way of marking the dominance of Mughal radical Islamization on the Hindu traditions, which are especially preserved in Kashmir.
Guru Tegh Bahadur therefore reflected on a way to stop these massacres. It was then that Gobind Rai (Guru Gobind Singh) who was returning home after a game, made his appearance. He questioned his father about the reason for the presence of this delegation and also what Guru Tegh Bahadur thought. His father explained the situation. Gobind Rai then asks him the solution, which he had found at the end of his reflection. Guru Tegh Bahadur replied that a great man must certainly sacrifice himself.
Gobind Rai replied, telling him that there was no one today was more respectable and greater than himself. Thus a 9-year-old child sent his father to the sacrifice in an attempt to preserve the Hindu religion. It is also in this way that Guru Tegh Bahadur recognized Gobind Rai as being ready to become the future Sikh guru.