Guru Nanak was the founder of Sikhism, but it was Guru Gobind Singh who formalized the religion.