Although it established the Three Departments and Six Ministries, its demise resulted from Turkish incursion.  
This dynasty attacked Korea unsuccessfully four times and reinstated the Han civil service system.  Although it established the Three Departments and Six Ministries, its demise resulted from Turkish incursion.  The dynasty's last emperor, Yang, was the son of its first, Yang Chien, who took the royal name of Wen Ti.  This dynasty's rulers extended the Grand Canal from Hangzhou to Yangzhou and on to Loyang, its longest extent.  Overthrown by Liuyang, who established the Tang Dynasty, FTP, name this Chinese dynasty which lasted from 581 to 618 CE.
This dynasty attacked Korea unsuccessfully four times and reinstated the Han civil service system.  
Sui Dynasty