However, in the 5th century, Baekje was defeated by Goguryeo. It suffered the loss of its capital. Baekje moved its capital to Ungjin. In 6th century, King Seong decided to move capital to Sabi to restore Baekje's glorious past. However, Baekje was ruined by Silla at 660. Although Baekje was destroyed at that time, many ill-fated attempts were existed to restore Baekje from its descendants.