Queensferry, additionally called South Queensferry or merely "The Ferry", is a town to the west of Edinburgh, Scotland, generally a royal burgh of West Lothian. It exists ten miles to the north-west of Edinburgh city centre, on the shore of the Firth of Forth in between the Forth Bridge, Forth Road Bridge and also the Queensferry Crossing. The prefix South offers to differentiate it from North Queensferry, on the contrary shore of the Forth. Both towns derive their name from the ferryboat solution established by Queen Margaret in the 11th century, which remained to run at the community until 1964, when the Road Bridge was opened. Its population at the 2011 census was 9,026 based on the 2010 definition of the locality which along with the burgh consists of Dalmeny.