Williamsburg County is a county located in the U.S. state of South Carolina. As of the 2020 census its population was 31,026. The county seat and largest community is Kingstree. After a previous incarnation of Williamsburg County, the current county was created in 1804.