Jayavarman VII
The Khmer were rallied by a new king, Jayavarman VII, who drove the Cham from Cambodia in 1181. When Jaya Indravarman IV launched another attack against Cambodia in 1190, Jayavarman VII appointed a Cham prince named Vidyanandana to lead the Khmer army. Vidyanandana defeated the invaders and proceeded to occupy Vijaya and to capture Jaya Indravarman IV, whom he sent back to Angkor as a prisoner.