In 1684, he wrote the Chandi di Var in Punjabi language – a legendary war between the good and the evil, where the good stands up against injustice and tyranny, as described in the ancient Sanskrit text Markandeya Purana.