Sima Yan, courtesy name Anshi, was born in Wen County, Hanoi. He was the eldest son of Sima Zhao and his biological mother Wang Yuanji. He served as the Central Protector and General of the Fu Army in Cao Wei. In August 265, Sima Zhao died and he succeeded him as Prime Minister and King of Jin. In December (266 in the Gregorian calendar), he forced Wei Emperor YuanCao Huanabdication and became the emperor in Luoyang. The country was named Jin. It was changed to Yuan Taishi and was known as Western Jin in history. He granted Cao Huan the title of King of Chenliu, treated the Wei clan with courtesy, and made twenty-seven of the clan kings in one breath, hoping to protect the royal family with vassal kings.
Emperor Wu appointed Yang Hu, Du Yu, Zhang Hua and others to plan the expedition against Wu. In the winter of 279, the troops were divided into six groups. In March 280, Wang Jun's ship arrived at Jianye, and Sun Hao surrendered, ending the nearly one hundred years of division since the end of the Eastern Han Dynasty. After unification, he enacted the land occupation system and household adjustment system, and dismissed the state and county soldiers. Social production was restored for a time, and the household registration increased. It is known as the "Taikang Rule" in history. He also promulgated the "Taishi Code", established the Guozi School, and rectified the ritual and music system.
However, after Wu was defeated, Emperor Wu gradually became arrogant and neglectful. He selected five thousand people from the Wu palace to enter the palace, rode sheep carts and let them go where they wanted. He also indulged Wang Kai, Shi Chong and others in their extravagant fights for wealth. He ignored the advice of his ministers and insisted on passing the throne to the low-intelligence Crown Prince Sima Zhong, and forced away his prestigious younger brother Sima You. He also granted various titles to the clan kings, giving them military power. In April 290, he died of illness in Hanzhang Hall, Luoyang, at the age of fifty-five. He was assisted by his relative Yang Jun, and Western Jin immediately fell into the Eight Kings Rebellion.
Sima Yan inherited the legacy of his father and brother and succeeded the Wei and Jin Dynasties. He also destroyed Wu and unified it, ending nearly a hundred years of separatism. He promoted land occupation, household transfer, Taishi law and Guozixue, which restored the social economy and his achievements cannot be denied. However, after unification, he was complacent, indulged in pleasure, and indulged in the extravagance of the gentry. He enfeoffed the clan and granted military power, and insisted on passing the throne to the dull Crown Prince. This caused Western Jin to fall into chaos in the past ten years or so. Most historians comment on it as "the country was founded well, but not established well enough."