The North Berwick Branch is a short railway branch line built by the North British Railway to connect North Berwick, in East Lothian, Scotland to the East Coast Main Line (at Drem). It was built as a tactical means of excluding competitors from the area, and when it opened in 1850 it was loss making. The later development of North Berwick as a resort and a golfing centre transformed the branch line. Goods train operation on the branch ceased in 1968, but the line was electrified in 1991 and now enjoys a regular interval passenger service to Edinburgh.