Using the city of Angkor as capital, for the next centuries the Khmer empire expanded its territorial base, mostly to the north (entering the Khorat plateau) and the west, to the Chao Phraya basin and beyond. To the east outcomes were different: several times the Khmer fought wars against two neighboring peoples with powerful kingdoms, the Cham (in today’s central Vietnam) and the Vietnamese (in today’s northern Vietnam). Despite some victories, as in 1145 CE, when Cham’s capital Vijaya was taken, the empire was never able to annex those lands. Conversely, Chams and Vietnamese enjoyed some victories of their own, the most spectacular of which was Cham’s humiliating revenge, looting Angkor (1177 CE) and pushing the empire to the edge of destruction.