Queensferry, likewise called South Queensferry or just "The Ferry", is a community to the west of Edinburgh, Scotland, generally a royal burgh of West Lothian. It lies 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 as well as the Queensferry Crossing. The prefix South offers to identify it from North Queensferry, on the contrary coast of the Forth. Both towns obtain their name from the ferry solution established by Queen Margaret in the 11th century, which continued to operate at the town till 1964, when the Road Bridge was opened. Its population at the 2011 census was 9,026 based upon the 2010 definition of the locality which in addition to the burgh includes Dalmeny.