British residents were introduced in Brunei under the Supplementary Protectorate Agreement in 1906. The residents were to advise the sultan on all matters of administration. Over time, the resident assumed more executive control than the sultan. The residential system ended in 1959.