An official called Maharaja Labui or Mantri Makota Raja was therefore acting as regent, taking care of the affairs.
This person was descended from the sultan's family of Siak though the exact link is not clear.
Siak had risen to become an important power on the east coast of Sumatra in the eighteenth century.
However, the expelled sultan was able to build up a new base at Kota Musapi with the help of an influential qadi, Malik ul-Adil.
Badr ul-Alam had a daughter, Merah di Awan, who was later married to Alauddin Mahmud Syah's eldest son in an attempt to reconcile the families.