Khmers under the command of Jayavarman VII killed the invading Chams.