Tun Ali died in October 1858, and buried at the Royal Cemetery, Kuala Pahang, having had issue, five sons and six daughters.[citation needed] Tun Ali's death was followed by the succession dispute among his sons Tun Mutahir and Tun Ahmad, that later escalated into a full scale civil war.