Golf in Scotland was first recorded in the Scottish late Middle Ages, and the modern game of golf was first developed and established in the country. The game plays a key role in the national sporting consciousness. Scotland has 587 courses, the most courses per head of any country, with the majority being in Glasgow and Edinburgh.