A decade of conflict followed the death of Jayavarman V. Three kings reigned simultaneously as antagonists until Suryavarman I (reigned 1006 – 1050) gained the throne. Suryavarman I established diplomatic relations with the Chola dynasty of south India. Suryavarman I sent a chariot as a present to the Chola Emperor Rajaraja Chola I. His rule was marked by repeated attempts by his opponents to overthrow him and by military conquests. Suryavarman was successful in taking control of the Khmer capital city of Angkor Wat. At the same time, Angkor Wat came into conflict with the Tambralinga kingdom of the Malay peninsula. In other words, there was a three-way conflict in mainland Southeast Asia. After surviving several invasions from his enemies, Suryavarman requested aid from the powerful Chola Emperor Rajendra Chola I of the Chola dynasty against the Tambralinga kingdom. After learning of Suryavarman's alliance with Rajendra Chola, the Tambralinga kingdom requested aid from the Srivijaya King Sangrama Vijayatungavarman. This eventually led to the Chola Empire coming into conflict with the Srivijaya Empire. The war ended with a victory for the Chola dynasty and of the Khmer Empire, and major losses for the Srivijaya Empire and the Tambralinga kingdom. This alliance also had religious nuance, since both Chola and Khmer empire were Hindu Shaivite, while Tambralinga and Srivijaya were Mahayana Buddhist. There is some indication that before or after these incidents Suryavarman I sent a gift, a chariot, to Rajendra Chola I to possibly facilitate trade or an alliance. Suryavarman I's wife was Viralakshmi, and following his death in 1050, he was succeeded by Udayadityavarman II, who built the Baphuon and West Baray. In 1074, conflict arose between Harshavarman III and the Champa King Harivarman IV.