This paper uses the spatial analysis method of GIS to study the temporal–spatial distribution characteristics of ancient sites from the Han to the Tang periods in Shaanxi Province. (1) Analysis of topographic features reveals that ancient sites in Shaanxi Province are concentrated in plain areas with slopes due south, east, and southeast, elevations of about 866m, and slopes of 0 to 3°. (2) From the point line analysis, founding the sites are concentrated in the range of 10km, the farther away from the river, the fewer tombs distributed, it shows that the distribution of ancient tombs is linear. (3) The final kernel density analysis found that the site sites from the Han to the Northern and Southern Dynasties were concentrated in the Guanzhong Plain, while the distribution in other areas was more scattered; In the Sui and the Tang Dynasties, the sites were mainly distributed in Guanzhong Plain with Xi'an as the center. Studying the temporal–spatial distribution characteristics of ancient sites can not only explore the relationship between the development of ancient human society and the evolution of the natural environment but also provide a reference for the further study of sites in the future.