The Master of Works to the Crown of Scotland was responsible for the construction, repair and maintenance of royal palaces, castles and other crown property in Scotland. The main buildings were; Holyroodhouse; Edinburgh Castle; Stirling Castle; Linlithgow Palace; and Falkland Palace. The position was roughly equivalent to that of Surveyor of the King's Works in the English Royal Household. The emergence of the position reflected a shift in responsibility from the masons, or administrators in holy orders, to designers with little hands-on knowledge of stonemasonry. Earlier holders of the office were often courtiers: James Hamilton of Finnart was the king's kinsman; John Scrymgeour was a heraldic expert; while William Schaw, an administrator, was a key figure in the development of Freemasonry, itself a 'craft' having little to do with building. Later holders filled a role similar to that of architects in the modern sense. Some Masters were craftsmen; Robert Robertson, who was master of work at Stirling Castle after the execution of the aristocrat Hamilton of Finnart, was a carpenter. During the reign of James V there was also a Principal Master Wright or carpenter, John Drummond of Milnab, and as well as building works he was concerned with the artillery and its logistics.
In the 15th century, a Master of Works would be appointed to oversee an individual construction project, such as a new palace, or a rebuilding of an old one. Thus the exchequer records identify several postholders who might be regarded as accountants rather than architects. In the 16th century, during the reign of James V, the appointment of a Principal Master of Works began, with overall responsibility for all the king's works. The appointment was usually for life. Following the death of James Smith in 1714, the post became a sinecure, with a salary of £400, and the post declined in importance. In 1808 Robert Reid was named Architect and Surveyor to the King in Scotland, and he became Master of Works following the death of James Brodie in 1824. However, in 1831 the Scottish Office of Works was merged with the English Office of Works, and when Reid retired in 1840, he was not replaced. The Office of Works was later reconstituted as the Ministry of Works.
The dates given are those of their appointment. These appointments were made by the issue of a warrant recorded in the Register of the Privy Seal. William MacDowall, though acting as master of work never had a warrant, and some appointments ran concurrently.
The office was unoccupied from 1668–1671.