Shafton is a civil parish located in the Metropolitan Borough of Barnsley within South Yorkshire, England. It is situated on the border with West Yorkshire.
The parish encompasses the villages of Shafton and Shafton Two Gates. According to census data, the population was 2,840 in 2001 and increased to 3,447 by 2011.