In 266 , Sima Zhao 's son Sima Yan forced the last Wei - Emperor Cao Huan to end the throne in his favor , ending the Wei regime .
In 266 , Sima Yan 's son Cao Huan forced the last Wei emperor Wei to abdicate the throne in his favour , thereby ending the Sima Zhao regime .