Battle of Baekgang
Meanwhile, also in 663, Liu Rengui and Liu Renyuan, in conjunction with Munmu of Silla and the former Baekje crown prince Buyeo Yung, defeated Buyeo Pung and Japanese forces sent to assist him, at the Battle of Baekgang. Buyeo Pung fled to Goguryeo, ending the Baekje resistance movement. Emperor Gaozong recalled Liu Renyuan, leading Liu Rengui in charge of former Baekje territory, but in 664 sent Liu Renyuan back to Baekje and tried to recall Liu Rengui. Liu Rengui petitioned to remain to prepare for another attack on Goguryeo, and Emperor Gaozong agreed to let him remain.