Sima Yi fought for four generations of the Cao family before his own grandson became emperor and united the three kingdoms.