of the Seven States, the system was standardized, replacing the kingdoms and principalities with thirteen provinces (州, zhōu). Provinces Commanderies Counties * One of the original provinces established during the Eastern Han dynasty Ping was formed out of You; Qin out of Liang (涼/凉); Liang (梁) and Ning out of Yi; and Guang out of Jiao. Jiao had been established from a territory called Jiaozhi (交趾); Si too was a new creation, its territory formerly administered by a metropolitan commandant (司隷校尉, Sīlì xiàowèi) with capacities similar to the provincial governors'. Shuofang (朔方, Shuòfāng), a similar territory in northern Shaanxi, was merged into Bing rather than becoming a full province in its own right. Provinces during the Jin dynasty and the Southern and Northern dynasties Throughout the Han dynasty, the Three Kingdoms period, and the early period of Jin dynasty, the administrative division system remained intact. This changed, however, with the invasion of nomadic tribes from the north in 310s, who disrupted the unity of China and set up a variety of governments. After the Yongjia Disaster, Jin dynasty lost a significant amount of territories in the north. Sixteen Kingdoms were established by barbarians in the Yellow River plain, while the court of Jin dynasty shifted to Jiankang and survived in the south as Eastern Jin. Among previous provinces of Jin dynasty, only a few remained. They include: Yangzhou Jiangzhou Jingzhou Ningzhou Jiaozhou Guangzhou Yuzhou (only the southern part) Xuzhou (only the southern part) With the loss of traditional lands in the north to nomadic tribes, many ethnic Han moved south as refugees with the Jin court. The Jin government established "immigrant provinces" (qiaozhou) based on the homelands of immigrants. For example, while Yan-, Qing- and Youzhou were lost, Southern Yan-, Southern Qing- and Southern You- were established in the south. Eastern Jin launched several expeditions in its last years and regained many territories. When the Liu Song replaced Eastern Jin as the first Southern Dynasties, it re-constructed the administrative divisions. For example, Yanzhou, Yongzhou and Jizhou were restored. During the reign of Emperor Xiaowu, Liu Song had 22 provinces (, Zhou), 238 commanderies (, Jun) and 1179 counties (Xian, ): Yangzhou Xuzhou Southern Xuzhou Yanzhou Southern Yanzhou Yuzhou Southern Yuzhou Jiangzhou Qingzhou Jizhou Sizhou Jingzhou Yingzhou Xiangzhou Yongzhou Liangzhou Qinzhou Yizhou Ningzhou Guangzhou Jiaozhou Yuezhou Later, due to the conflict with Northern Wei and the change of territories, Liu Song's