On three occasions Murray stood as a
Member of Parliament, but was unsuccessful each time. He obtained a position, from 1838 to 1844, as
Master of the Household and Extra
Groom in Waiting in the Court of the young
Queen Victoria. He was removed in the Household reforms initiated by
Albert, Prince Consort. on good terms with the Ottoman Viceroy,
Mehmet Ali Pasha. He was then appointed British
ambassador to the Court of the
Shah of Persia in 1854. The Shah,
Nasser al-Din Shah, and Murray disliked each other immediately. Murray's heavy-handed attitude inflamed an existing dispute over Hashim Khan, one of the Shah's bodyguards and an officer in the Persian army, who took up a position as secretary in the British embassy against the wishes of the Shah and his prime minister. Hashim Khan's wife was the subject of widespread gossip relating to Murray and his predecessor as ambassador; she was also a sister of the Shah's principal wife, so the scandal was political dynamite. Hashim Khan's wife was taken into custody by her brother on 14 November 1855, to defend her honour. Murray took this as an insult to the British legation; after demanding her release, Murray broke off diplomatic relations on 20 November. Anglo-Persian relations were already strained as the young Shah sought to annex the city of
Herat, a goal which had eluded the
Qajar dynasty previously; and Britain for its part sought to deny such control, lest the city, considered the "Key to India," fall under the influence of Persia's patron,
Russia. Murray's departure marked a break in Anglo-Persian relations and thus contributed to the outbreak of the
Anglo-Persian War of 1856/7. After the war, Murray remained ambassador until 1859. In 1859, he became
Envoy to the
King of Saxony, serving until 1866 when he became
Envoy at
Lisbon from 1866 to 1874. Upon his return to the United Kingdom, he became a member of the
Privy Council in 1875. ==Personal life==