ec il ▁off ▁from ▁his ▁throne . ▁ ▁As ▁the ▁settlement ▁for ▁the ▁deb t ▁of ▁honour ▁by ▁S ula iman ▁of ▁Joh or - R ia u ▁in ▁ 1 7 7 2 , ▁a ▁joint ▁government ▁were ▁struct ured ▁between ▁the ▁Bug is ▁in com er ▁and ▁the ▁native ▁Malays ▁and ▁several ▁political ▁marriage ▁were ▁formed ▁between ▁the ▁two ▁dynast ies . ▁The ▁Bug is ▁ch ie ft ain ▁were ▁aw arn ed ▁with ▁the ▁titles ▁of ▁Yang ▁di - P ert uan ▁M uda / Y amt uan ▁M uda ▁( de put y ▁r uler ▁or ▁Vic ero y ) ▁and ▁R aja ▁T ua ▁( pr incipal ▁prince ), ▁receiving ▁the ▁second ▁and ▁third ▁param ount ▁seat ▁in ▁the ▁s ultan ate . ▁Although ▁the ▁latter ▁title ▁became ▁ob sole te , ▁the ▁position ▁of ▁Yang ▁Di per tu an ▁M uda ▁domin ated ▁until ▁the ▁re formation ▁that ▁merged ▁the ▁so vere ig nt y ▁of ▁the ▁two ▁Royal ▁houses ▁in ▁ 1 8 9 9 . ▁ ▁The ▁Yang ▁Di per tu an ▁M uda ▁possessed ▁a ▁de ▁fact o ▁pr er og ative ▁powers ▁exceed ing ▁that ▁of ▁the ▁s ultan ▁himself . ▁Despite ▁the ▁fact ▁his ▁function ▁under ▁the ▁law ▁was ▁second ▁highest ▁in ▁the ▁office , ▁non eth eless ▁in ▁practice ▁he ▁can ▁over - ru led ▁the ▁s ultan . ▁This ▁is ▁strongly ▁evident ▁during ▁the ▁rule ▁of ▁Sultan ▁Abd ul ▁Rah man ▁II ▁when ▁Yang ▁Di per tu an ▁M uda