Her Majesty's Government, or when the monarch is male, His Majesty's Government, is the title used by the Government of the United Kingdom, based at 10 Downing Street; and formerly also by the governments of other Commonwealth realms.
The title is used because in UK constitutional law, executive authority is vested in the monarch and exercised through the ministers. In effect, the government is an executive authority consisting of the monarch's ministers. In Commonwealth usage, the term government does not relate to parliament] or the courts, but only to the executive branch.
In international contexts, where it is necessary to avoid confusion with the governments of other Commonwealth realms, the terms Her Majesty's Government in the United Kingdom or Her Britannic Majesty's Government are used.