 Shi was killed in 761, and the revolt was eventually suppressed in 763 with the help of foreign troops.After the collapse of the Tang in 907, another period of disunity ensued known as the Five Dynasties and Ten Kingdoms period.Five officially recognised dynasties ruled consecutively in the north (with capitals at Kaifeng or Luoyang in Henan), while ten different kingdoms held sway at different times in the south.