'William Inglis', Captain of the Honourable Company of Edinburgh Golfers, by David Allan, 1787.
By courtesy of the Scottish National Portrait Gallery.
The origins of golf are a matter of mystery and controversy.
Shown here are some of the earliest sources for the history of golf in Scotland. They shed light on the birth of the game, its language, techniques and equipment.
They also tell us much about the social standing of golf as it developed from an outlawed activity to the world's most internationally important game.
Documents and texts from the National Library of Scotland's collections and other sources give an insight into the early days of the game.
Read how golf became organised with the formation of the world's first golf club and the formulation of the earliest surviving 'rules of golf' in 1744.