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 Zhao 's son Sima Yan forced the last Wei emperor Cao Huan to abdicate the throne in his favour , thereby ending the Wei regime .