The military history of Goguryeo involves wars with other Korean kingdoms, Chinese dynasties, nomadic states and tribes, and Wa Japan. Goguryeo was a highly militaristic state; it was a powerful empire and one of the great powers in East Asia, until it was defeated by a Silla–Tang alliance in 668 after prolonged exhaustion and internal strife caused by the death of Yeon Gaesomun.