The chaotic Warring States period of the Eastern Zhou dynasty came to an end with the unification of China by the western state of Qin after its conquest of all other rival states under King Ying Zheng. King Zheng then gave himself a new title "First Emperor of Qin" (), setting the precedent for the next two millennia. To consolidate administrative control over the newly conquered parts of the country, the First Emperor decreed a nationwide standardization of currency, writing scripts, and measurement units, to unify the country economically and culturally. He also ordered large-scale infrastructure projects such as the Great Wall, the Lingqu Canal and the Qin road system to militarily fortify the frontiers. In effect, he established a centralized bureaucratic state to replace the old feudal confederation system of preceding dynasties, making Qin the first imperial dynasty in Chinese history.