The Siamese later agreed to restore the Sultan of Kedah to his throne in 1842. The following year, Syed Hussein Jamallulail was installed as the first Raja of Perlis, after Sultan Ahmad Tajuddin gave his endorsement for the formation of Perlis state.[1]