The Scotland Office, known as the Office of the Secretary of State for Scotland from 2018 to 2024, is a department of His Majesty's Government headed by the secretary of state for Scotland and responsible for Scottish affairs that lie within HM Government's responsibility.