Long before his death in 1858, Tun Ali had retired from active participation in the government of the state, and removed his residence to Lami on the river of Pahang where he spent his declining years in a vain endeavour to effect a reconciliation between his turbulent sons. On his retirement he had handed over the government to his eldest son Tun Mutahir. The heir took up his residence at Ganchong, hence the origin of the name Bendahara Ganchong by which he came to be known.[24]