Hargobind, became the sixth guru of the Sikhs. He carried two swords—one for spiritual and the other for temporal reasons (known as mīrī and pīrī in Sikhism). Sikhs grew as an organized community and always had a trained fighting force to defend their independence. In 1644, Har Rai became guru followed by Harkrishan, the boy guru, in 1661. No hymns composed by these three gurus are included in the Sikh holy book.
Tegh Bahadur became guru in 1665 and led the Sikhs until 1675. Teg Bahadur was executed by Aurangzeb for helping to protect Hindus, after a delegation of Kashmiri Pandits came to him for help when the Emperor condemned them to death for failing to convert to Islam. He was succeeded by his son, Gobind Rai who was just nine years old at the time of his father's death. Gobind Rai further militarised his followers, and was baptised by the Pañj Piārē when he formed the Khalsa on 13 April 1699. From here on in he was known as Gobind Singh.