Jayavarman II (802–830), revived Khmer power and built the foundation for the Khmer Empire, founding three capitals—Indrapura, Hariharalaya, and Mahendraparvata—the archeological remains of which reveal much about his times. After winning a long civil war, Suryavarman I (reigned 1002–1050) turned his forces eastward and subjugated the Mon kingdom of Dvaravati. Consequently, he ruled over the greater part of present-day Thailand and Laos, as well as the northern half of the Malay Peninsula. This period, during which Angkor Wat was constructed, is considered the apex of Khmer civilization.