Ultimately his own book Ahqaq-ul-haq was presented as evidence against him, he was declared a heretic and sentenced to death due to his religious beliefs.[7][8] He was executed by flogging in Jumada II 1019/September 1610, when he was seventy.[9][10][11] His tomb is at Agra[12]