隋文帝
The creation of the imperial examination system during the reign of Emperor Wen of Sui began the process of replacing the nine-rank system.