During the Northern Song dynasty (960–1127), the sixteen ceded prefectures continued to be an area of contention between Song China and the Liao dynasty. Later, the Southern Song dynasty abandoned all of North China, including Hebei, to the Jurchen Jin dynasty after the 1127 Jingkang Incident of the Jin–Song wars. Hebei was heavily affected by the flooding of the Yellow River; between 1048 and 1128, the river ran directly through the province rather than to its south. The Mongol Yuan dynasty divided China into provinces but did not establish Hebei as a province. Instead, the area was directly administrated by the Secretariat at the capital Dadu. Ming and Qing dynasties The Ming dynasty ruled Hebei as Beizhili, meaning Northern Directly Ruled because the area contained and was directly ruled by the imperial capital in Beijing. The "Northern" designation was used because there was a southern counterpart covering present-day Jiangsu and Anhui. When the Manchu Qing dynasty came to power in 1644, they abolished the southern counterpart, and Hebei became known as Zhili or Directly Ruled. During the Qing dynasty, the northern borders of Zhili extended deep into Inner Mongolia and overlapped in jurisdiction with the leagues of Inner Mongolia. Republic of China The Qing dynasty collapsed in 1912 and was replaced by the Republic of China. In a few years, China descended into a civil war, with regional warlords vying for power. Since Zhili was so close to the capital of Peking (Beijing), it was the site of the Zhiwan War, the First Zhifeng War, and the Second Zhifeng War. With the success of the Northern Expedition in 1926 and 1927 by the Kuomintang, the capital was moved from Peking to Nanking (Nanjing). As a result, the provence's name was changed to Hebei, reflecting the relocation of the capital and its standard provincial administration. During the World War II, Hebei was under the control of the Reorganized National Government of the Republic of China, a puppet state of Imperial Japan. People's Republic of China The founding of the People's Republic of China saw several changes. The region around Chengde, previously part of Rehe Province (historically part of Manchuria), and the region around Zhangjiakou, previously part of Chahar Province (historically part of Inner Mongolia), were merged into Hebei. This extended its borders northwards beyond the Great Wall. Meanwhile, the city of Puyang was carved away, causing Hebei to lose access to