In 601, Lý Phat Tu was summoned to attend the Chinese court. However, he delayed the attendance and eventually rebelled in 602, even though he had recognized Sui authority in 595. He concentrated his military forces at the Lý capital Co Loa and at Long Bien. In 602, General Liu Fang led his army in the invasion of Lý.
The Sui army departed via Yunnan to the Lý territory. However, the Lý armies were unprepared to fend them off, because they had not expected that the Sui army would take this invasion route. In the end, Lý Phat Tu surrendered to the Sui forces. Consequently, the Chinese took him captive and transferred him to the Chinese capital Chang'an. Liu Fang's army also forced the submission or defeated the remaining local clans. The conquered territory was incorporated under Chinese rule.