安史之亂
This was a time of momentous change for Balhae and its neighbors. In the case of Silla, the nobility increasingly became independent and rebellions sprang up throughout the country. Meanwhile, in China, the Tang faced serious crises caused by the An Lushan Rebellion and many other uprisings. Finally, Zhu Wen established the Later Liang, marking the end of the Tang dynasty in 907.