Wanyan Aguda, chief of the Wanyan tribe, unified the various Jurchen tribes in 1115 and declared himself emperor. In 1120 he seized Shangjing, also known as Linhuang Prefecture (), the northern capital of the Liao dynasty. During the Jin–Song Wars, the Jurchens invaded the Northern Song dynasty and overran most of northern China. The Jurchens initially created the puppet regimes of Da Qi and Da Chu but later adopted a dynastic name and became known as "Jin" 金, which means "gold", not to be confused with the earlier Jin 晋 dynasties named after the region around Shanxi and Henan provinces. The name of the Jurchen dynasty in Chinese — meaning "gold"—is derived from the "Gold River" (Jurchen: "antʃu-un"; Manchu: "Aisin") in their ancestral homeland. The Jurchens who settled into urban communities eventually intermarried with other ethnicities in China. The Jin rulers themselves came to follow Confucian norms. The Jin dynasty captured the Northern Song dynasty's capital, Bianjing, in 1127. Their armies pushed the Song all the way south to the Yangtze River and eventually settled on a border with the Southern Song dynasty along the Huai River.