Gobind Rai's early education included study of languages and training as a Soldier. He had started studying Hindi and Sanskrit while at Patna. At Anandpur Sahib, he started studying Punjabi under Sahib Chand, and Persian under Qazi Pir Mohammad.
In March, 1699, Guru Gobind Singh laid the foundation of the Khalsa at Anandpur Sahib. He offered amrit to the Panj Piaras (five beloved ones). In fact, thousands of people took the amrit that day prepared by stirring a dagger in a steel vessel containing water. In one moment he finished the distinction of caste and creed. He gave a new identity to the followers, and told them to live a morally dean life. It was a great miracle. A new organisation was born with the holy duty of protecting the poor and the repressed. These were fearless soldiers in the cause of righteousness Ute victims of the Mughal cruelties became self-respecting and confident. They joined the fold of the Khalsa.
A result of the Guru's actions is arguably that the strength of Sikhi in the 18th and 19th centuries was based on the third, fourth, and fifth orders of Indian society, even though some of its leaders still came from the Kshatriya varna.
Much of Guru Gobind Singh's creative literary work was done at Paonta he had founded on the banks of the River Yamuna and to which site he had temporarily shifted in April 1685. Poetry as such was, however, not his aim. For him it was a means of revealing the divine principle and concretizing a personal vision of the Supreme Being that had been vouchsafed to him. His Japu and the composition known as Akal Ustati are in this tenor. Through his poetry he preached love and equality and a strictly ethical and moral code of conduct. He preached the worship of the One Supreme Being, deprecating idolatry and superstitious beliefs and observances.