The Scottish Office was a department of the United Kingdom Government from 1885 until 1999, exercising a wide range of government functions in relation to Scotland under the control of the Secretary of State for Scotland.