The Medang kingdom or the Mataram kingdom was a Javanese Hindu-Buddhist kingdom which flourished between the 8th and 11th centuries. It was based in Central Java, and then in East Java. The first account of the Medang Mataram Kingdom is in the Canggal inscription, dated 732, discovered in the Gunung Wukir Temple compound in the village of Canggal, southwest of the town of Magelang. This inscription, written in Sanskrit using the Pallava script, tells of the erection of a lingga (symbol of Shiva) on a hill in the Kunjarakunja district , located on a noble island called Yawadwipa (Java), blessed with abundance of rice and gold. The lingga was founded by order of Rakai Mataram Sang Ratu Sanjaya (King Sanjaya Lord of Mataram) the founder of the kingdom. At its peak, the kingdom had become a dominant empire—not only in Java, but also in Sumatra, Bali, southern Thailand, Indianized kingdoms of the Philippines, and the Khmer in Cambodia.
His successor, Panakaran (r. 760—780) was an enthusiastic developer who was credited for at least five major temple projects conducted and started during his reign. According to the Kalasan inscription dated 778, the Kalasan temple was erected by Panangkaran as a holy building for the goddess (boddhisattvadevi) Tara. The temple connected to this inscription is the Kalasan temple that housed the image of Tara, and the nearby Sari temple that was probably functioned as the monastery.
Panangkaran was also responsible for the construction of Abhayagiri Vihara, connected to today’s site of Ratu Boko. This hilltop consists of a series of gates, ramparts, fortified walls, dry moats, walled enclosure, terraces and building bases. It displays attributes of an occupation or settlement site, although its precise functions is unknown. This led to a suggestion that this compound probably was served as the palace. Initially probably it was intended as a secluded hilltop Buddhist monastery, as mentioned in the Abhayagiri Vihara inscription. However, later it seems to be converted to become a fortified palace or a citadel, which evidence in the remnant of defensive structures.
The period between the reign of King Panangkaran and King Balitung (range 760—910), which lasted approximately 150 years, marked the apogee of Javanese classical civilisation. This period witnessed the blooming of Javanese art and architecture, with majestic temples and monuments erected and dominated by the skyline of Kedu and Kewu Plain. The most notable of these temples is Sewu, Borobudur and Prambanan temple.
Other than examining bas-reliefs carved on the temple’s walls, the study of ancient Javanese society is also conducted through archaeological relics. The artefacts show the intricate artwork and technical mastery of the ancient Javanese goldsmith. The hoard was estimated to date from the reign of King Balitung. The treasure has been identified as belonging to a noble or a member of the royal family.
The earliest temple in the Southern Central Java Mataram region was the Hindu Shivaist Gunung Wukir temple, built by King Sanjaya. Almost 50 years later the oldest Buddhist temple was built in Prambanan region, the Buddhist Kalasan temple, by King Panangkaran. From this time, the kingdom saw exuberant temple construction projects, such as Sari, Manjusrigrha, Lumbung, Ngawen, Mendut, Pawon and Borobudur, the massive stone mandala completed in c. 825 CE.
The monumental Hindu temple of Prambanan in the vicinity of Yogyakarta — initially built during the reign of King Pikatan (838—850), and expanded continuously through the reign of Lokapala (850—890) to Balitung (899–911) — is a fine example of ancient Medang Mataram art and architecture. The grand temple complex was dedicated to the Trimurti, the three highest gods in the Hindu pantheon (Shiva, Brahma, Vishnu). It was the largest Hindu temple ever built in Indonesia, evidence of the immense wealth and cultural achievement of the kingdom.
Other Hindu temples dated from Medang Mataram Kingdom era are: Sambisari, Gebang, Barong, Ijo, and Morangan. The Sewu temple dedicated for Manjusri according to Kelurak inscription was probably initially built by Panangkaran, but later expanded and completed during Rakai Pikatan’s rule. The Buddhist temple of Plaosan, Banyunibo and Sajiwan were built during the reign of King Pikatan.
From the 9th to mid 10th centuries, the Medang Kingdom witnessed the blossoming of art, culture and literature, mainly through the translation of Hindu-Buddhist sacred texts and the transmission and adaptation of Hindu-Buddhist ideas into Old Javanese text and visual bas-reliefs rendering. The bas-relief carved on each sides of Mendut temple stairs and also on the base of Sojiwan temple for example, narrating the popular Jataka Buddhist tales, the stories that tell about the previous lives of the Buddha, in both human and animal form. The Borobudur bas-relief particularly, contains the most complete rendering of Buddhist sacred texts.