Shafton is a civil parish in the Metropolitan Borough of Barnsley in South Yorkshire, England, on the border with West Yorkshire. At the 2001 census it had a population of 2,840, increasing to 3,447 at the 2011 Census. The parish contains the villages of Shafton and Shafton Two Gates. Shafton Two Gates takes its name from the two roads that enter Shafton at this point. The etymology derives from the Old Norse word gata, the equivalent of the modern English word road. The two roads in question are both ancient and locally important. The more southerly of the two is the road between Pontefract and Barnsley, this section of which was made into Turnpike in 1833, with a turnpike gate which was sited slightly to the east of the modern roundabout serving the Cudworth Parkway and Engine Lane. The second more northerly road, is the old Salter's road that runs from Shafton Two Gates via the North Field of Cudworth (Weetshaw Lane) through to Carlton where it continued towards Smithies and eventually up through Penistone to the Salter's Brook Bridge which marked the ancient boundary between Yorkshire and Cheshire at Longdendale (these days the boundary is between the Metropolitan Borough of Barnsley and Derbyshire). This was an ancient packhorse route. Shafton is easily accessible with the A628 running straight through the heart of it.