The Murray, later MacGregor of MacGregor Baronetcy, of Lanrick in the County of Perth, is a title in the Baronetage of Great Britain. It was created on 3 July 1795 for John Murray. He was a member of the Scottish MacGregor clan. This branch of the family had been forbidden to wear their own surname by King James VI, the only instance of this in British history. The ban was revoked in 1661 by King Charles II but restored during the reign of William and Mary. It was finally repealed in 1774. However, it was not until 1822 that the family obtained Royal licence to use the family surname. The second Baronet was a colonial administrator and served as Governor of Dominica, Antigua, Barbados and Trinidad. Sir Evan MacGregor, third son of the second Baronet, was Permanent Secretary to the Admiralty. The sixth Baronet was a Brigadier in the Scots Guards. The MacGregors of MacGregor are also the Chiefs of Clan Gregor.