Cao Lin (died 11 March 256)[a] was a prince of the state of Cao Wei in the Three Kingdoms period of China. He was a son of Cao Cao, a warlord who rose to prominence towards the end of the Han dynasty and laid the foundation for the Cao Wei state. His mother was Lady Du (杜夫人), a concubine of Cao Cao. She also bore Cao Cao another son, Cao Gun. In 211, Emperor Xian, the last emperor of the Han dynasty, enfeoffed Cao Lin as the Marquis of Raoyang (饒陽侯). In 217, Cao Lin's title was changed to "Marquis of Qiao" (譙侯). In 221, a year after Cao Lin's half-brother Cao Pi usurped the throne from Emperor Xian and became the first emperor of the Cao Wei state, he enfeoffed Cao Lin as the Duke of Qiao (譙公). One year later, Cao Pi elevated Cao Lin from a duke to a prince under the title "Prince of Qiao" (譙王). In 226, he changed Cao Lin's title to "Prince of Juancheng" (鄄城王). In 232, Cao Pi's successor, Cao Rui, changed Cao Lin's title to "Prince of Pei" (沛王). Throughout the reigns of the subsequent Wei emperors, the number of taxable households in Cao Lin's dukedom increased until it reached 4,700. After Cao Lin died in 256, his son Cao Wei (曹緯) inherited his princedom as the new Prince of Pei. Cao Lin had a daughter, who married Ji Kang.
|Prince of Pei (沛王)|
|Tenure||232 – 11 March 256|
|Prince of Juancheng (鄄城王)|
|Prince of Qiao (譙王)|
|Duke of Qiao (譙公)|
|Marquis of Qiao (譙侯)|
|Marquis of Raoyang (饒陽侯)|
|Died||[a]11 March 256|
|House||House of Cao|
- Cao Mao's biography in the Sanguozhi recorded that Cao Lin died on the yisi day of the 1st month of the 1st year of the Ganlu era of Cao Mao's reign. This date corresponds to 11 March 256 in the Gregorian calendar.
- ([甘露元年春正月]乙巳，沛王林薨。) Sanguozhi vol. 4.
- (武皇帝二十五男： ... 杜夫人生沛穆王林、中山恭王衮， ...) Sanguozhi vol. 20.
- (沛穆王林，建安十六年封饒陽侯。二十二年，徙封譙。黃初二年，進爵為公。三年，為譙王。五年，改封譙縣。七年，徙封鄄城。太和六年，改封沛。景初、正元、景元中，累增邑，并前四千七百戶。林薨，子緯嗣。) Sanguozhi vol. 20.
- (案嵇氏譜：嵇康妻，林子之女也。) Ji Shi Pu annotation in Sanguozhi vol. 20.