The rulers of the expansionist Qin dynasty, based in present-day Gansu and Shaanxi, were only the first strategists to realize that the area's military importance matched its commercial and agricultural significance.