In 1878, Hampton County emerged from part of Beaufort; in 1882, part of Charleston became Berkeley County; and in 1888, parts of Marion, Darlington, Williamsburg, and Clarendon merged to become Florence County. In 1895, Saluda County was created from part of Edgefield. In 1897, Bamberg emerged from Barnwell; Cherokee from parts of Spartanburg, Union, and York; Dorchester from Berkeley and Colleton; and Greenwood from parts of Abbeville and Edgefield. In 1902, Lee emerged from parts of Darlington, Kershaw, and Sumter.