 Periodical rebellions have occurred in Annam in 828, 841, 858, 860, 880, involving more and more people every time.After every uprising Tang authorities were forced to retreat to China.China have been torn apart by upheaving dynasties from 874, until 907 when the Five Dynasties and Ten Kingdoms period had started.