Sanjaya (Sanskrit: सञ्जय, romanized: sañjaya, lit. 'conquest, victory, triumphant'; 716 AD – 746) was the founder of the Mataram kingdom during the 8th century. His name was carved in the Sanskrit Canggal inscription which was found at the Gunung Wukir temple that stood on Wukir or Ukir hill (about 340 m (1,120 ft) high) on the southern Kedu Plain in Central Java.
Another recorded source of Sanjaya's history and his successors is found in the Balitung charter and the Wanua Tengah III inscription. In the Mantyasih inscription, King Balitung mentions what is called 'the builders of keraton', starting from Rakai Mataram (Sanjaya) and followed successively by Maharaja Rakai Panangkaran, Panunggalan, Warak, Garung, Rakai Pikatan, Kayuwangi, Watuhumalang and Watukura (which is Balitung himself). Several inscriptions of Balitung's successor, Daksha, used a dating system based on the year of Sanjaya's accession, which L.C. Damais has calculated as 638 Śaka (716 AD).