Dunbar is a community on the North Sea shore in East Lothian in the south-east of Scotland, around 30 miles (48 kilometres) east of Edinburgh and 30 miles (48 kilometres) from the English boundary north of Berwick-upon-Tweed. Dunbar is a previous royal burgh, as well as provided its name to a clerical and also civil parish. The parish extends around 7 1/2 miles (12.1 kilometres) east to west and is 3 1/2 miles (5.6 kilometres) deep at greatest extent, or 11 1/4 square miles (29 km2), and also has the villages of West Barns, Belhaven, East Barns (abandoned) and several communities and also ranches. Its critical location gave rise to a history loaded with occurrence as well as rivalry; but Dunbar has ended up being a quiet dorm town preferred with workers in nearby Edinburgh, who locate it a budget friendly option to the funding itself. Until the 1960s, the population of the town was little bit greater than 3,500. The town is loving the most recent population published for the town at 8,486, as well as there are numerous energetic and also organized housing developments recurring. There are effectively concerned primary schools, a high school and an independent school in the town. The community is served by Dunbar train station with web links to Edinburgh et cetera of Scotland, in addition to London and also terminals along the north-east hallway. Dunbar is house to the Dunbar Lifeboat Station, the second-oldest RNLI terminal in Scotland. Dunbar is the birthplace of the explorer, naturalist and also influential preservationist John Muir. The house in which Muir was birthed is situated on the High Street, and also has been exchanged a gallery. There is likewise a commemorative sculpture next to the community clock, and John Muir Country Park is located to the north-west of the town. The eastern area of the John Muir Way seaside course begins with the harbour. Among the two campuses to Dunbar Primary School: John Muir University, is called in his honour.