수 문제
The creation of the imperial examination system during the reign of Emperor Wen of Sui began the process of replacing the nine-rank system.