The Chinese, unable to prevail against the rebellious king of Nanzhao, recognize the kingdom as an independent state in 774.