Medang Kingdom: The Mataram Dynasty of Central Java
The Medang kingdom was a Hindu-Buddhist realm of Central Java that built many of the island’s great temples before its centre of power moved east in the early tenth century. It held the fertile plains and volcanic hills of the central region between the eighth and tenth centuries, and its legacy is mostly stone: temple complexes around Borobudur and Prambanan, carved reliefs, and inscriptions cut into stone and metal. There is no preserved royal palace to tour, so a visitor meets the kingdom through its monuments, its royal lines, and the hills and plains on which they stand.
What the Medang kingdom was
Medang is the name most often used for the kingdom in the period when Central Java was its heartland. Its inscriptions also call the same realm Mataram, and a much later kingdom with the same name in Java should not be confused with it. The kingdom’s rulers sat at the top of a network of farming villages, river valleys and temple foundations. Wealth came from rice grown on rich volcanic soil, and that surplus helped pay for the stone monuments that still define the area.
The kingdom is known mainly from its inscriptions and from the temples themselves, which is why the monuments matter so much. A carved panel or a dated stone can tell a visitor more about the court than a bare list of kings, and reading a temple wall is a little like reading a page of history in stone.
The Sanjaya and Sailendra lines
Two royal lines are tied to the Medang kingdom. The Sanjaya line followed Hindu Shaivism, the tradition that honours Shiva. Its founder appears in the Canggal inscription, a stone dated to 732 that records a Shiva lingga set up on a hill. The Sailendra line followed Mahayana Buddhism. The Kalasan inscription, dated to 778, records a shrine to the goddess Tara and a monastery for Buddhist monks founded at the urging of Sailendra teachers, one of the early marks of that tradition in the central region.
How the two lines related to each other can be told in two ways. One telling has two dynasties sharing the land, sometimes allied by marriage and sometimes rivals for the plains. The other sees one ruling family whose favoured religion followed the faith of the king on the throne. What matters for a visitor is the result on the ground: Hindu shrines and Buddhist stupas stand within a short distance of each other, which makes the region rewarding for a slow visit.
The story of the Sanjaya and Sailendra lines follows these two royal houses, their temples and their marriage alliance in more depth.
Rakai Pikatan, Pramodhawardhani and the ninth-century monuments
The ninth century produced some of the most famous monuments in Java. Rakai Pikatan, a ruler of the Sanjaya line, is credited with beginning the great Hindu complex at Prambanan. Pramodhawardhani, a Sailendra princess who married Pikatan, is associated with the Buddhist temples of the Plaosan group, which stand on the same plain. Borobudur, the great Buddhist monument of the Kedu plain, belongs to the same Sailendra era.
A common reading of this period is that Prambanan answered Borobudur in scale and ambition, as a Hindu statement beside a Buddhist one. Others see in the two monuments the changing faith of one royal family. Either way, seeing both in one trip makes the period easier to understand, because the Hindu towers at Prambanan and the terraced stupas at Borobudur express different religious ideas in neighbouring landscapes.
The Borobudur group: Borobudur, Mendut and Pawon
Borobudur is built as a stepped monument: square terraces form the base, three circular terraces rise above them, and a large central stupa crowns the top. The walls of the square galleries are covered with carved reliefs that show the life of the Buddha and the path towards enlightenment, and the circular terraces hold 72 perforated stupas, each sheltering a seated Buddha. The Borobudur temple page covers the terraces and the route round them.
Mendut lies about three kilometres east of Borobudur and holds a large seated stone Buddha flanked by two bodhisattvas, Avalokiteshvara and Vajrapani. It is one of the best places in the area to see original statues still in a temple setting, and the Mendut temple page explains what to look for. Pawon is a smaller shrine between Mendut and Borobudur, and the three temples stand on one straight line. The Pawon temple makes a quieter stop on that line.
Visiting the three in order, from Mendut to Pawon and then to Borobudur, follows the straight line on which the temples were set. It lets a visitor see small, intimate shrines before the scale of Borobudur.
The Canggal inscription and the Magelang hills
The first record of the Sanjaya line is the Canggal inscription of 732, which tells how Sanjaya had a Shiva lingga set up on a hill and names the earlier king Sanna before him. The Canggal inscription page explains the text and its date, and the Candi Gunung Wukir page describes the hilltop temple site that the stone is tied to. Standing on such a rise, you look over the plain that became the centre of the kingdom.
A later stone of great importance is the Mantyasih inscription, dated to 907 and issued in the name of King Balitung. It sets out an ordered list of the kings of Mataram reaching back to Sanjaya, which is why Sanjaya is remembered as the founder of a line. The Mantyasih inscription page gives more detail on its contents.
The move east and the end of the central court
Around 929 the centre of the kingdom moved from Central Java to East Java under Mpu Sindok, who founded a new royal line, the Isyana dynasty. The reasons for the move are uncertain. A natural disaster, most often taken to be a severe eruption of Mount Merapi, and pressure from the kingdom of Srivijaya in Sumatra are among the explanations given, and the move may have had several causes at once.
The move did not erase the Central Java monuments, but it ended their life as a royal centre. Many temples stopped being maintained, and some were buried by volcanic debris over the centuries. Sambisari is a clear example: this Hindu temple was buried metres deep under material from Merapi and was brought back into view only in modern times, so a visit there shows how the land itself kept part of the kingdom hidden.
What a visitor sees around Prambanan and Yogyakarta
The Prambanan complex near Yogyakarta is dedicated to the Hindu trinity of Brahma, Vishnu and Shiva. The Shiva temple, about 47 metres high, is the tallest and most central, with the Brahma temple to its south and the Vishnu temple to its north. The inner walls of the Shiva temple carry reliefs of the Ramayana, and the story continues on the Brahma temple, so a careful visitor can follow the epic panel by panel.
Sambisari stands below the level of the surrounding fields in its excavated pit, with the steps and walls showing the shape of the original temple. Plaosan is a Buddhist temple group on the Prambanan plain, linked by tradition with Pikatan and his queen. Sojiwan is a Buddhist ruin a short distance south of Prambanan, and Ratu Boko, on a hill a few kilometres from Prambanan, is a walled complex of gateways, terraces, platforms and bathing pools whose purpose, palace or religious site, is still discussed. Its hilltop position gives a wide outlook, which makes it a good place to see how the kingdom’s heartland looked from above.
How the sites are reached
Borobudur and its neighbours lie in Magelang regency in Central Java. Prambanan, Sambisari, Plaosan, Sojiwan and Ratu Boko lie on the plain on the eastern side of Yogyakarta, within a short drive of one another. The two areas are a separate journey apart by road, so a visitor can cover both in one long day with an early start, or spread them over two days for a slower pace.
Most visitors reach the region by road, either from Yogyakarta or from the Magelang side. Hiring a driver for the day is a practical choice, because the sites are spread out and the roads between them are busy at peak hours. Public transport exists, but it takes longer and rarely reaches the smaller sites directly. Plan the day around the distances rather than around the number of sites you hope to see.
When to go and what the weather is like
The dry months are the most comfortable time to visit, when the paths are firm and the reliefs are easier to read in clear light. The wet season brings heavy showers, and the stone can become slippery. The low sun of early morning and late afternoon brings out relief detail best, while midday is hot and bright and open courtyards offer little shade.
Weekends and public holidays tend to be busier at the large sites. A weekday visit gives more space on the upper terraces and at Prambanan’s main shrines, and it leaves more time for quiet looking.
Practical cautions for a visit
- Wear shoes with good grip. Temple steps are steep and worn, and the stone is slippery after rain.
- Dress modestly and follow any dress instructions given at the entrance.
- Carry water and sun protection. Most of the complexes are open to the sky, and the hilltop at Ratu Boko is exposed.
- Do not climb on the stupas or touch the reliefs. The carvings have been worn by centuries of weather, and staff at the major sites ask visitors to keep off them.
- Keep a small amount of cash for entry tickets and for snacks sold near the gates.
Common questions about the Medang kingdom
Was Medang the same as Mataram?
Yes. Medang is the name most used for the Central Java kingdom of this period, and its own inscriptions also call the realm Mataram. A much later kingdom also bore the Mataram name, so the context of any name matters when you read about the island’s history.
Can you see the kingdom’s palace?
No palace from the kingdom survives in a form a visitor can walk through. The closest substitute is Ratu Boko, a hilltop complex of gateways, terraces and pools that may have been a royal residence, a religious site or both, with the temples showing most of what survives of the court’s religious life.
Which Medang site should a first-time visitor choose?
For most first-time visitors, the Borobudur group comes first, because it combines a major monument with smaller temples on one line. Prambanan is the next choice for those who want the Hindu side of the story, and the two together give a clear picture of the period’s religious and royal history.
