A King's Harbour Master (abbreviated as KHM, also known as Queen's Harbour Master or QHM during the reign of a female monarch)[1][2] is a harbourmaster and public official in Canada and the United Kingdom.
[6] A flag for the Queen's Harbour Masters was approved on 1 December 1999, and registered with the Canadian Heraldic Authority.
[7] In the United Kingdom, a King's Harbour Master is a public official with the duty of keeping the port secure for both military and civilian shipping.
[8] The powers of the King's Harbour Masters are defined in the Dockyard Ports Regulation Act 1865.
[citation needed] Queen's Harbour Masters were first appointed in the first half of the nineteenth century; there was some overlap with the duties of Master Attendants in HM Dockyards, and the two offices were held by the same person in several instances.