Terengganu fell under the administration of Britain through the Bangkok Treaty of 1909 and was forced to accept a resident "British advisor". Terengganu, along with four other states were grouped under the term of Unfederated Malay States. British maintained its rule on Terengganu until the Japanese occupation in World War II.