In 265, Sima Zhao died and was succeeded as regent by his son Sima Yan (Emperor Wu), who later that year usurped the throne from Cao Huan, thus ending the Cao Wei state and establishing the Jin dynasty (265–420). Throughout Emperor Wu's reign, Wei Guan continued to be an important official and general, serving in a variety of roles capably. As a result, one of his brothers and one of his sons were granted marquis titles. Wei Guan attempted to implement a revised civil service system, where the civil service examiner () would have less input on grading officials, and actual job performance would become more important, but while Emperor Wu liked Wei Guan's suggestions, he did not carry them out.