In 771 BC, the Marquess of Shen collaborated with the Zeng state and the Quanrong nomads, attacked and sacked the Zhou capital Haojing, killing King You of Zhou and ending the Western Zhou dynasty. Duke Xiang led his troops to escort King You's son King Ping to Luoyi, where the new capital city of the Eastern Zhou dynasty was established. In gratitude of Duke Xiang's service, King Ping formally enfeoffed Duke Xiang as a feudal lord and elevated Qin from an "attached state" (附庸 "fùyōng", a minor state with limited autonomy under the rule of other liege lord) to a major vassal state, and further promised to permanently give Qin the land west of Qishan, the former heartland of Zhou, if Qin could expel the Rong tribes that were occupying it. The future generations of the Qin rulers were encouraged by this promise, and they launched several military campaigns on the Rong, eventually expanding their territories to beyond the original lands lost by the Western Zhou dynasty. The Qin state therefore viewed the Zhou rulers King Wen and Wu as their predecessors, and themselves as inheritors of their legacy.