sentences:  A road bridge over the Esk gives access to the course on race days only; the rest of the time, the gates are kept closed.The first races in Musselburgh took place in 1777 under the auspices of the Royal Caledonian Hunt.Between 1789 and 1816, race meetings were held on the sands at Leith, although some races did still take place in the town.