Cao Ni

Cao Ni
曹嶷
Inspector of Qingzhou (青州刺史)
In office
? (?)–317 (317)
MonarchLiu Yuan/Liu Cong
General Who Maintains the East (安東將軍)
In office
323 (323)–323 (323)
MonarchEmperor Ming of Jin
Personal details
BornUnknown
Donglai Commandery, Jiaodong Peninsula
Died323
Xingtai, Hebei
RelationsCao Yan (Grandson)

Cao Ni (died 323) was a Chinese military general of Han-Zhao and warlord during the Jin dynasty (266–420) and Sixteen Kingdoms period. He was one of the followers of the bandit Wang Mi and followed him into service with Liu Yuan's state of Han. Wang Mi entrusted him to secure his family in Qingzhou, but after Wang Mi was killed by Shi Le in 311, Cao Ni gradually became an independent warlord, causing much concern in the Han-Zhao court. He was finally killed in 323 when Shi Le sent his nephew Shi Hu to subdue him once and for all. His name can be rendered as Cao Yi.

Cao Ni left an important mark in 4th century China with the formation of Guanggu City (廣固, in modern Qingzhou, Shandong). The city became his capital after he took over the region and would continue to serve as such to the states after his death, Duan Qi and Southern Yan.