South Yorkshire is divided into four local government districts; they are the City of Sheffield, the Metropolitan Borough of Doncaster, the Metropolitan Borough of Barnsley and the Metropolitan Borough of Rotherham. The county borders Derbyshire, West Yorkshire, North Yorkshire, East Riding of Yorkshire, Lincolnshire and Nottinghamshire.