Following the Tang collapse, short-lived northern dynasties and competing southern kingdoms divide China until new political and military forces prepare the way for reunification.