Sui dynasty
Emperor Yang's disastrous defeats in Korea greatly contributed to the collapse of the Sui dynasty.