Founding of the Jin (Western Jin)
Also called: Founding of the Western Jin
Sima Yi’s grandson Sima Yan received the throne from the Wei emperor and founded Jin, ending Wei after 45 years.

Yan Li-pen · Public domain · Source
When Sima Zhao died in 265, his son Sima Yan succeeded him as King of Jin and in the twelfth month received the abdication of Cao Huan, the last Wei emperor, becoming Emperor Wu. The capital remained Luoyang. It was a repeat of the way Cao Pi had taken the throne from the Han. The dynasty is called the Western Jin to distinguish it from the Eastern Jin that later moved south of the Yangtze.