Li Yongfang (Chinese: 李永芳; died 1634) was a Chinese general of the Ming dynasty and Qing dynasty known for defecting to the Qing dynasty, due to the Ming dynasty losing the city of Fushun in Liaoning to the Qing. Li Yongfang along with many other Han Chinese defected to the Qing as the old Ming system was declining and corrupt, and the Qing provided an opportunity for the Han Chinese to continue their culture. One of Li Yongfang's descendants Li Shiyao was sentenced to death by the Qianlong emperor but was spared his life when he helped suppress the Lin Shuangwen rebellion in Taiwan.[1][2][3][4][5]