Wu Yan, a zishi, was first appointed as an official in Tongjiang County, born in poverty and low, with literary and martial talents, eight feet tall, able to fight with wild beasts with bare hands, and excellent physical strength.
Later, Wu Yan served as a junior military attaché to Sima Lukang. Lu Kang admired Wu Yan's courage and strategy, and planned to promote and reuse him. But worried that the generals would not obey, so they gathered many generals, secretly sent people to pretend to be crazy and draw swords to break in, all the generals on the seat were afraid to flee, but Wu Yan did not move, raised a small table to resist the man, everyone admired his bravery, Lu Kang then promoted and reused him.

When Wu Yan was promoted to Jianping Taishou, Wang Jun, the Assassin of Yizhou in the Western Jin Dynasty, was ordered to build warships in Shudi and prepare to attack the State of Wu. Wu Yan noticed this movement and asked the imperial court to increase its forces to guard against Jianping, but Emperor Sun Hao of Wu did not listen. Wu Yan then made iron chains and crossed the Yangtze River to cut off waterways to prevent the Western Jin Warships from advancing eastward.
Soon, the Jin army attacked the State of Wu. After the fall of the State of Wu, Wu Yan surrendered to the Western Jin Dynasty, and Sima Yan, the Emperor of Jinwu, appointed him the Taishou of Jincheng. Later, he was reappointed as the Taishou of Dunhuang, and Wu Yanwei's name ende was very prominent. Later, Gohiko was promoted to the position of Taishou of Yanmen. At that time, Sima Chang, the king of Shunyang, was proud and indulgent, and all those who served in the history of the previous and subsequent posts were framed by him for fabricating charges. When Wu Yan served as the internal history of Shunyang, he took his own integrity as an example for his subordinates, and strictly suppressed the punishment, so that everyone was afraid of him. Sima Chang could not frame him, but instead recommended him, hoping to send him away as soon as possible. Later promoted to the rank of Regular Attendant.
After the death of Jiaozhou Thorn Shi Tao Huang, Wu Yan became the governor of Nanzhong Andi, the jiaozhou thorn history. At that time, the soldiers of Jiuzhen County rebelled and expelled Jiuzhen Taishou, and the rebel leader Zhao Zhi besieged the county town; after Wu Yan took office, he led the troops to pacify the rebels one by one. Wu Yan later served as the Taishou of Jiaozhou for more than twenty years, with a prominent prestige, and the southern prefecture was peaceful and peaceful. He asked the imperial court to send someone to replace him, so the imperial court recruited him to join the dynasty as the Great Changqiu. Gohiko eventually died in office.