Williamsburg is an independent city in Virginia, United States. As of the 2020 census, it had a population of 15,425. Located on the Virginia Peninsula, Williamsburg is in the northern part of the Hampton Roads metropolitan area.