Selangor, he successfully promoted the development of coffee and tobacco estates and helped boost tin earnings by constructing a railway from Kuala Lumpur (it was capital of Selangor at that time), to the port of Klang, which was later named Port Swettenham in his honour. He acquired the title of Resident-General after he secured an agreement of federation from the states of Perak, Selangor, Negri Sembilan, and Pahang in 1895, when he was Resident of Perak state. In the 1897 Diamond Jubilee Honours he was appointed a Knight Commander of the Order of St Michael and St George (KCMG) by Queen Victoria, and in October 1901, three years before his retirement, he was appointed Governor and Commander-in-Chief of the Straits Settlements. Swettenham had long been critical of the influence of Siam in the northern Malay states of Kelantan and Trengganu, which had traditionally recognised the suzerainty of Siam by sending a tribute of a golden flower to the King of Siam every three years. After his appointment as Governor of the Straits Settlements, he attempted to negotiate with Siam for greater British influence over the affairs of these states. Siam reluctantly agreed to appoint British advisors, but only on the condition that they were appointed by Bangkok, not by the Foreign Office as he had hoped. However, the process had been initiated whereby these two states and eventually Kedah would eventually accept British Residents. Swettenham was disappointed in his ultimate goal of bringing the southern Thai region of Patani under British control. Personal life While on home leave in England in the summer of 1877, Swettenham met and became engaged to Constance Sydney Holmes (b. 1858), daughter of Cecil Frederick Holmes, a housemaster at Harrow School. They married in England in February 1878 and returned together to Singapore, where the nineteen-year old Sydney Swettenham attempted to come to terms with her new role as the wife of a colonial official. Their marriage, which was strained from the beginning and marked by long periods of separation, lasted until 1938, when Frank Swettenham successfully sued for divorce on the grounds of his wife's insanity. Swettenham became friends with Gertrude Bell when she visited Singapore in 1903 and maintained a correspondence with her until 1909. They are thought to have had a "brief but passionate affair" after his retirement to England. Frank Swettenham remarried at the age of 89, this time to Vera