Xian was China's capital during several dynasties. Over 2,000 years ago, Emperor Qin Shi Huang, the first ruler to unify China, built his capital of Xianyang just east of modern day Xian. The Han Dynasty that followed also established its capital near Xian, calling it Chang'an or "Eternal Peace".