 During the Qing dynasty, the northern borders of Zhili extended deep into what is now Inner Mongolia, and overlapped in jurisdiction with the leagues of Inner Mongolia.The Qing dynasty collapsed in 1912 and was replaced by the Republic of China.Within a few years, China descended into civil war, with regional warlords vying for power.