Xianyang is a former capital of China in Shaanxi province, on the Wei River, a few kilometers upstream from Xi'an. It has an area of 10,213 square kilometres. It's part of the Xi'an metropolitan area, one of the main urban agglomerations in inland China with more than 7 million inhabitants.