The latter was badly cornered by a rebellion by one of the sagis (regions) in 1726 and had to take refuge in a fortress.
As the other sagis joined the uprising, Jamal ul-Alam fled to Pidië on the advice of Panglima Maharaja.
After some political chaos Panglima Maharaja stepped forward and was enthroned, although he had previously sworn not to betray Jamal ul-Alam.
[2] He took the regnal title Sultan Jauhar ul-Alam Amauddin Syah but died after only seven (or twenty) days.
In his place the chiefs chose Wandi Tebing alias Syamsul Alam as sultan.