Wiman's grandson, King Ugeo (우거,右渠), allowed many exiles from Han dynasty of China to live in Wiman Joseon. The number of Han grew, however, and King Ugeo prevented the Jin state from communicating with the Han dynasty. As a result, in 109 BC, Wudi of China invaded Wiman Joseon near the Luan River. After failing several times to defeat Wiman Joseon's armies, Han Wudi tried to convince the princes of Wiman Joseon to kill King Ugeo. The conspiracy failed and it led to the destruction of the Gojoseon kingdom. After the war, Wudi of Han dynasty sentenced two generals to death for failing to defeat Wiman Joseon.