Duke Wen of Qin (Chinese: 秦文公; pinyin: Qín Wén Gōng, died 716 BC) was the seventh ruler of the Zhou Dynasty state of Qin that eventually united China to become the Qin Dynasty. His ancestral name was Ying (Chinese: 嬴), and Duke Wen was his posthumous title.