During the Three Kingdoms and the Two Jin Dynasties, the Sima family rose to power. Sima Yi, a master of cunning schemes, outlasted Cao Cao and Cao Pi and gradually moved into the center of political power. After executing Cao Shuang, Sima Yi and his two sons acted with complete impunity. To consolidate their regime, the Sima family courted the celebrated scholars of Wei and Jin. Huangfu Mi, Ji Kang, and the other Seven Sages of the Bamboo Grove were forced to withdraw from the turbulent times and live in seclusion, yet even so they could not escape the threat of death.