Nguyễn led the investigation, and concluded that Duyet and his entourage had engaged in corruption and abuse of power. He ordered the posthumous humiliation of Duyệt. This resulted in the desecration of his tomb, the execution of sixteen relatives, and the arrests of his colleagues. This led Duyệt's adopted son Lê Văn Khôi to break out of prison and revolt against the emperor. One of his first actions was to execute Nguyễn.