He served Duke Huan 秦桓公 (r. 604-577) as an advisor. In 578 he participated in the battle of Masui 麻隧 (near modern Jingyang 涇陽, Shaanxi) against the united forces of the regional rulers (zhuhou 諸侯) under the command of Jin 晉. The allies defated Qin and advanced as far as Houli 侯麗 (near modern Fengquan 禮泉), but then withdrew. The high officers Cheng Chai and Nü Fu 女父 were captured. Their fate is unknown.