The first dated inscription in Central Java was the Canggal from 732 AD (or 654 Saka). This inscription, which hailed from Kedu, is written in Sanskrit in Pallava script. It is written that a Shaivite king named Sri Sanjaya established a kingdom called Mataram. Under the reign of Sanjaya's dynasty, several monuments such as the Prambanan temple complex were built. At the same time, a competing dynasty Sailendra arose, which adhered to Buddhism and built the Borobudur temple. After 820 AD, there was no more mention of the "Hēlíng" in Chinese records. This fact coincides with the overthrow of the Sailendras by the Sanjayas who restored Shaivism as the dominant religion. In the middle of the 10th century, however, the centre of power moved to eastern Java. Raden Wijaya founded the Majapahit Empire, and it reached its peak during the reign of Hayam Wuruk (m. 1350–1389). The kingdom claimed sovereignty over the entire Indonesian archipelago, although direct control tended to be limited to Java, Bali and Madura. Gajah Mada was a military leader during this time, who led numerous territorial conquests. The kingdoms in Java had previously based their power on agriculture, but Majapahit had succeeded in seizing ports and shipping lanes, in a bid to become the first commercial empire on Java. The empire suffered a setback after the death of Hayam Wuruk and the entry of Islam into the archipelago.