Yŏn Kaesomun (c. 600-666), the great field-marshal (tae-mangniji) of late Goguryeo, born to the eastern magnate Yŏn house. In 642, under the banner of 'cleansing the side of the ruler', he staged the coup — killing King Yeongnyu and a hundred and eighty officials at the training ground, raising King Bojang and taking the office of mangniji, all military and civil power in his hand: the tribute to the Tang stopped, the envoys detained, Baekje aided against Silla, the thousand-li wall raised on the northeast frontier against Tang. In 645 Emperor Taizong campaigned against Goguryeo in person — the Liaodong cities fell one by one, but Ansi held under its own commandant; the great relief army Yŏn sent under Go Yansu and Go Hyejin was beaten, the Tang bogged before the fortress, and with frost and empty granaries went home — Yŏn's prestige at its very top: 'seven thousand li east and west, not less than several hundred thousand spears.' In age his sons quarreled; he died of illness in 666 — the eldest Namsaeng against Namgeon and Namsan, Namsaeng defecting to Tang as guide. In 668 the Tang-Silla armies destroyed Goguryeo (the prelude of the Tang-Silla war and Silla unification). The Korean histories judge him two ways — the Samguk Sagi brands him a traitor, the folk recitation of Yŏn Kaesomun plays him as the hero against Tang, and the modern nationalism has raised him again.