The history of Sikhism started with Guru Nanak Dev Ji, the first Guru in the final century in the Punjab region of the Indian subcontinent. The religious practices were formalised by Guru Gobind Singh Ji on 13 April 1699. The latter baptised five persons from different social backgrounds to form Khalsa (ਖ਼ਾਲਸਾ). The first five, Pure Ones, then baptised Gobind Singh into the Khalsa fold. This gives the order of Khalsa, a history of around 300 years.
The history of Sikhism is closely associated with the history of Punjab and the socio-political situation in 16th-century Northwestern Indian subcontinent ( modern Pakistan and India). During the Mughal rule of India (1556–1707), Sikhism was in conflict with the Mughal empire laws, because they were affecting political successions of Mughals while cherishing saints from Hinduism and Islam. Prominent Sikh Gurus were killed by Islamic rulers for refusing to convert to Islam, and for opposing the persecution of Sikhs and Hindus.