Duke Wen of Qi (Chinese: 齊文公; pinyin: Qí Wén Gōng; died 804 BC) was from 815 to 804 BC the tenth recorded ruler of the State of Qi during the Western Zhou Dynasty of ancient China. His personal name was Lü Chi (呂赤), ancestral name Jiang (姜), and Duke Wen was his posthumous title. Duke Wen reigned for 12 years and died in 804 BC. He was succeeded by his son, Duke Cheng of Qi.