The rules of golf consist of a standard set of regulations and procedures by which the sport of golf should be played and prescribe penalties for rule infractions. They are jointly written and administered by the R&A (spun off from The Royal and Ancient Golf Club of St Andrews) the governing body of golf worldwide except in the United States and Mexico, which are the responsibility of the United States Golf Association (USGA). The rule book, entitled Rules of Golf, is published on a regular basis and also includes rules governing amateur status.
A central principle, although not one of the numbered rules, is found in the R&A rule book's inside front cover: "Play the ball as it lies, play the course as you find it, and if you cannot do either, do what is fair. But to do what is fair, you need to know the Rules of Golf."
In addition to the rules, golf adheres to a code of conduct known as etiquette, which generally means playing the game with due respect for the golf course and other players. Etiquette is often seen as being as important to the sport as the rules themselves.
Before the rules of golf were standardised golf clubs commonly had their own set of rules, which while broadly the same had subtle differences, such as allowing for the removal of loose impediments, e.g. leaves and small stones. In the late 19th century, most clubs began to align themselves with either the Society of St. Andrews Golfers, later the R&A, or the Gentlemen Golfers of Leith, later the Honourable Company of Edinburgh Golfers.
The earliest surviving written rules of golf were produced by the Gentlemen Golfers of Leith on March 7, 1744, for a tournament played on April 2. They were entitled "Articles and Laws in Playing at Golf" and consisted of 13 rules. The original manuscript of the rules is in the collection of the National Library of Scotland
Debate surrounds the authorship of these regulations, which were signed by John Rattray and which—on matters of order of play, outside interference, water hazards, holing out, making a stroke, and the stroke and distance penalty for the loss of a ball—remain an integral part of the modern game. Rattray's sole signature does not guarantee that he was wholly responsible for them, though his prominence within the company and Edinburgh society at large makes him the most likely candidate. Under these rules he went on to win the silver club for a second time in April 1745.