Middleburg is a town in Loudoun County, Virginia, United States. The population was 673 at the 2010 census.