The history of Goguryeo in the latter half of the 3rd century was characterized by Goguryeo's attempts to consolidate nearby regions and restore stability as it dealt with rebellions and foreign invaders, including Wei again during 259 in which Goguryeo defeated Wei at Yangmaek, and the Sushen during 280 in which Goguryeo launched a counterattack on the Sushen and occupied their capital. According to the "Samguk Sagi", during the Wei invasion in 259, King Jungcheon assembled 5,000 of his elite cavalry and defeated the invading Wei army at a valley in Yangmaek, killing 8,000 enemies. Goguryeo's fortunes rose again during King Micheon's rule (300-331), when the king took advantage of the weakness in Wei's successor the Jin dynasty and wrestled the commanderies of Lelang and Daifang from central Chinese control. By this time, Goguryeo completed seventy years of recovery and was transformed "from a Chinese border state, existing mainly by the plunder of the Chinese outposts in the northeast, to a kingdom centered in Korea proper, in which the formerly independent tribal communities of the Okjeo and others had been merged."