Virginia City is a town in and the county seat of Madison County, Montana, United States. In 1961 the town and the surrounding area were designated a National Historic Landmark District, the Virginia City Historic District. The population was 219 at the 2020 census.