 In ancient times, the bendahara was typically the highest-ranking official after the sultan but the sultan retained ultimate authority.The sultan was not answerable to the bendahara, or to anyone else for that matter.The sultan was not just a constitutional monarchy like the Yang di-Pertuan Agong in contemporary Malaysia where the Prime Minister holds effective political power.