When Sri Guru Gobind Singh Ji began his journey from Alamgir, he reached the town of Kot Kapura.
The mughal army had betrayed the koran and had sworn lies on it. The mughals were tracking Guru Gobind Singh to try and catch or kill him.
At Kot Kapura, Guru Gobind Singh asked Chaudhri Kapura (the founder of Kot Kapura) to let Guru Ji use his fort to fight the mughals, but Kapura refused to help.
So Guru Gobind Singh and his remaining Singhs arrived at the village Dhilwan Kalan, which was known as Dhilwan Sodhian at that time.
Kaul Sodhi lived in Dhilwan Kalan. Kaul Sodhi was a descendant of Prithi Chand (who was Sri Guru Arjan Sahib Ji's elder brother).