At His Majesty's pleasure

At His Majesty's pleasure (when the reigning monarch is female, at Her Majesty's pleasure), sometimes abbreviated to the King's pleasure (or the Queen's pleasure), is a legal term of art referring to the indeterminate or undetermined length of service of certain appointed officials or the indeterminate sentences of some prisoners. It is based on the proposition that certain government officials are appointed by the Crown and can be removed for policy reasons, unlike employees. Originating in the United Kingdom, the phrase is now used throughout the Commonwealth realms, Lesotho, Eswatini, Brunei, and other monarchies, such as Spain, the Netherlands, and Oman. In realms where the monarch is represented by a governor-general, governor, lieutenant governor, or administrator, the phrase may be modified to be at the governor's pleasure or variations thereof, since the governor-general, governor, lieutenant governor, or administrator is the king's personal representative in the country, state, or province.