King Jayavarman VII (reigned 1181–1219) was generally considered as Cambodia's greatest king. He had already been a military leader as a prince under previous kings. After the Cham had conquered Angkor, he gathered an army and regained the capital. He ascended the throne and continued the war against the neighbouring eastern kingdom for another 22 years, until the Khmer defeated Champa in 1203 and conquered large parts of its territory