To achieve this, Munmu forged alliances with Goguryeo resistance leaders such as Geom Mojam and Anseung, and launched attacks on the Tang forces occupying territories formerly belonging to the conquered kingdoms of Baekje and Goguryeo.