The Piper to the Sovereign (Gaelic; Scottish Gaelic: Pìobaire an Uachdarain), more commonly known as the King's Piper (Pìobaire an Rìgh) or Queen's Piper (Pìobaire a' Bhanrighe), is a position in the British Royal Household in which the holder of the office is responsible for playing the bagpipes at the Sovereign's request.
The position was established in 1843 when Queen Victoria and Prince Albert visited the Marquess of Breadalbane at Taymouth Castle a year earlier and discovered the Marquess had his own personal piper. The Queen was taken with the idea of having one for herself, writing to her mother, the Dowager Duchess of Kent:
The office has been held continuously since then (apart from a brief interruption during World War II) and the piper's main duty is to play at 9a.m. for 15 minutes under the Sovereign's window, and on state occasions.
The first Piper to the Sovereign was Angus MacKay, a noted collector and publisher of piobaireachd. Every subsequent piper has been a serving non-commissioned officer and experienced pipe major from a Scottish regiment or an Irish Regiment. While the Piper is a member of the Royal Household, he retains his military rank for the duration of the secondment.