Heriot-Watt University is a public university based in Edinburgh, established in 1821 as the world's first mechanics' institute. It has been a university by Royal Charter since 1966. It has branch campuses in the Scottish Borders, Orkney, Dubai, and Putrajaya in Malaysia.