The débâcle of the Korean war led to Sui's overthrow by the Tang, who then presided over a centuries-long golden age for the country.