Dashed left edge = started before October 817 ·
Dashed right edge = ongoing beyond October 817
Events in October 817 1
817Tang forces crush the Huaixi rebellionSurprise night attack captures the rebel capital CaizhouGeneral Li Su led a surprise assault through a snowstorm on Caizhou, capital of the rebellious Huaixi circuit, capturing warlord Wu Yuanji and ending his years-long revolt against the Tang court. The victory, engineered by chancellor Pei Du, marked the high point of Emperor Xianzong's campaign to restore central authority over China's autonomous military governors.