Yu Dayou was born in present-day Heshi Village,
Fujian, but his
ancestral home was in present-day
Huoqiu County,
Lu'an,
Anhui. He sat for the military version of the
imperial examination in 1535 and obtained the position of a '
(). He was awarded the title of a ' ( ) and appointed as a guard in
Jinmen Island, Fujian. In 1555, Yu Dayou, along with the
Zhuang noblewoman,
Wa Shi, led Ming forces to attack the
wokou pirates who were
raiding near
Jiaxing,
Zhejiang and defeated about 2,000 of them. In the following year, he was promoted to garrison commander () of Zhejiang and was ordered to eliminate the
wokou threat. He led Ming forces to attack the
wokou base in
Zhoushan in northeastern Zhejiang. In 1562, Yu Dayou was reassigned to serve as the garrison commander of
Fujian. In the following year, he joined
Qi Jiguang and other Ming generals in attacking the
wokou at
Putian and successfully seized back the city from the enemy. By 1566, most of the
wokou who had terrorised China's southeastern coast had been largely driven away. Yu Dayou was known for being an honest and upright official. When he met representatives from the influential spy agency,
Eastern Depot, he refused to provide bribes to them and ended up being framed on false charges and imprisoned. Although he was saved by Qi Jiguang and
Hu Zongxian, he nonetheless felt disappointed with political corruption within the Ming government and died in frustration. He was posthumously honoured as "Left Chief Controller" () and given the
posthumous name "Wuxiang" (). His son
Yu Zigao served as military governor of
Fujian. He
successfully forced the
Dutch to withdraw from
Penghu Island to
Taiwan in 1624, but was subjected to a series of massive raids in 1627 and 1628 by
Zheng Zhilong, culminating in the sack of his base at
Xiamen. ==Legacy==