Abdul Jalil Riayat Shah IV was killed while conducting his prayers on board his ship, by an emissary sent by Raja Kecil off Kuala Pahang, on November 21, 1721. The Sultan was buried at Royal Cemetery, Kuala Pahang.[citation needed]