 It was a small and weak kingdom, and thus tried to maintain good relations with each of the Five Dynasties.The kingdom fell to advancing armies of the Song in 963.Former Shu (907–925) was founded after the fall of the Tang Dynasty by Wang Jian, who held his court in Chengdu.