While Nanzhao was being defeated in Annam, it still occasionally attacked Sichuan. In 869, Shilong (世隆), the eighth king and the first empire of Nanzhao, invaded Sichuan. In 874, Nanzhao attacked Sichuan again.