In the interregnum period following the death of Abdul Ghafur Muhiuddin Shah in 1614, Pahang descent into chaos and was conquered by Aceh Sultanate under Sultan Iskandar Muda in 1617. The former Sultan Ahmad Shah II and his family was taken as a hostage to Aceh, where he died after 1617. Ahmad Shah's eldest son, Raja Mughal later known as Iskandar Thani was married to Iskandar Muda's daughter, the later Queen Taj ul-Alam and eventually succeeded him as the 13th Sultan of Aceh in 1636.