Launch app →

Human verified. Last updated by our editorial team on .

Oceania · Classical Hindu-Buddhist Java and Bali

Mataram Kingdom

732–1016

The Mataram Kingdom was the first great state of central Java: a Hindu-Shivaite monarchy founded in AD 732, which built the largest Buddhist monument in the world, ruled the rice plains of the Kedu and Prambanan valleys for nearly three centuries, and ended — on the best reading of the evidence — in 1016, when a local prince sacked its capital while the king was elsewhere.

Existed
732–1016
Shown on the map
AD 741–1009
Peak area
60k km²
Region
Oceania

It is also the state that made Java's classical culture: the temple complexes of Borobudur and Prambanan, the Old Javanese language as a literary medium, the sima land-grant system, and the court rituals that later kingdoms inherited. Almost everything that follows in Javanese history — Kediri, Singhasari, Majapahit, Mataram II — descends from it in memory, if not always in blood.

At a glance

NameMataram Kingdom; the Kingdom of Mataram; the Sailendra and Sanjaya period
DatesAD 732–1016 (the site draws AD 741–1009)
WhereCentral Java, around the Kedu plain, Prambanan and the Progo and Opak rivers
CapitalNot securely located; probably in the Prambanan–Kedu area, later shifted east
FounderSanjaya, recorded on the Canggal inscription of AD 732
ReligionShivaite Hinduism and Mahayana Buddhism, in the same polity
MonumentsBorobudur (c. 780–840), Prambanan (c. AD 850), Sewu, Plaosan, Ratu Boko
EconomyWet rice, village taxation, sima grants, river and inter-island trade
EndSacked in 1016, in a raid attributed by the sources to Wurawari of Lwaram

What was the Mataram Kingdom?

A Javanese state centred on the fertile volcanic plains of central Java, ruled by a dynasty that left its record in stone inscriptions and temple foundations rather than in chronicles. It was not an empire: its authority ran over the rice villages of the Kedu and Prambanan region and, at times, over the northern coast and the eastern districts, but its kings governed through grants of land and religious foundations rather than through a standing army or a bureaucracy.

Its importance is cultural. The two greatest monuments of Indonesia — Borobudur, the Mahayana Buddhist stupa-mountain, and Prambanan, the Shivaite temple complex — were built within its sphere in the ninth century. The Old Javanese language, the court poetry, the shadow-puppet repertoire and the idea of the ruler as a manifestation of a god all took shape there.

How do we know about it?

From stone. The Mataram kings left no chronicle and no archive; what survives is a corpus of inscriptions on stone and copper, in Sanskrit and Old Javanese, recording foundations, grants, genealogies and wars. The most important are the Canggal inscription of AD 732, which names Sanjaya and describes him as a great king; the Kalasan (AD 778) and Kelurak (AD 782) inscriptions of the Sailendra; the Mantyasih inscription of Balitung (AD 907), which lists the dynasty's kings in order; and the Pucangan inscription (1041), which describes the disaster that ended the kingdom.

That corpus has been read and re-edited for two centuries, and it still produces arguments. A date can hinge on a single numeral, as it does for the kingdom's end: the Pucangan stone's year has been read as 928, 938 or 939 Śaka, which gives 1006, 1016 or 1017 — and the difference matters, because the traditional 1006 has been repeated in a thousand books.

Who founded it?

Sanjaya, according to the Canggal inscription of AD 732, which records the erection of a lingga on a hill in central Java and praises its founder as a king who subdued his enemies and whose reign was prosperous. The inscription is in Sanskrit, in verse, and it is our earliest evidence for a Hindu kingdom in the region.

The Canggal inscription of AD 732, which records Sanjaya's foundation
The Canggal inscription. Photo: Gunawan Kartapranata, CC BY-SA 3.0, via Wikimedia CommonsPhoto: Gunawan Kartapranata, CC BY-SA 3.0, via Wikimedia Commons

But the record is complicated by the Sailendra, a second dynasty that appears in the same region at the same time, building Buddhist monuments. The Kalasan inscription of AD 778 records a temple for the goddess Tara built by the Sailendra; the Kelurak inscription of AD 782 records a great Buddhist foundation. Were the Sanjaya and the Sailendra rivals, co-rulers, or two branches of one family? The scholarly answers have changed repeatedly, and the honest statement is that the relationship is unresolved.

Who were the Sailendra?

The second dynasty of central Java, and the builders of Borobudur. The name means "lords of the mountain", and it appears in Sanskrit inscriptions from the late eighth century: the Kalasan inscription of AD 778 records a temple for the goddess Tara built by a Sailendra king, and the Kelurak inscription of AD 782 praises a Buddhist ruler whose authority was compared to the Buddha's.

Their relationship with the Sanjaya line is one of the great unresolved questions of Indonesian history. One reading makes them rival dynasties, one Hindu and one Buddhist, ruling different parts of the same plain; another makes them co-rulers, allied by marriages and sharing sovereignty; a third makes them two branches of a single family, one Shivaite and one Buddhist, alternating on the throne. The inscriptions support each reading in part, and no source settles it.

What is clear is that both patronised the same culture. The Shivaite Prambanan and the Buddhist Borobudur stand within a few kilometres of each other, built within decades, and the same villages and the same rice fields supported both. Java's classical civilisation was not the product of one religion but of a court culture in which both were honoured.

How large was it?

Smaller than its monuments suggest. The core was the Kedu plain and the Prambanan valley — perhaps a few thousand square kilometres of irrigated rice land, densely settled around the temples and the capital. On this map it is drawn at a single polygon for 875, which represents the kingdom's central territory, not an empire.

At its height, in the ninth and early tenth centuries, Mataram's authority extended over the north coast and into the eastern districts, and its kings intervened in Bali and perhaps in Sumatra. But the state was a network of loyalty and land grants, not a territorial administration, and its reach contracted as quickly as it expanded.

What did it build?

Borobudur and Prambanan, and a hundred smaller temples. Borobudur is a stepped pyramid of ten terraces, decorated with 2,672 relief panels and 504 Buddha statues, built around a natural hill between about 780 and 840 — the dates are not epigraphically fixed, and the arguments continue. It is a mandala in stone, a pilgrimage route that climbs from the world of desire to the realm of formlessness, and it is the largest Buddhist monument on earth.

Borobudur, the great Buddhist monument built in central Java between about 780 and 840
Borobudur. Photo: Gunawan Kartapranata, CC BY-SA 3.0, via Wikimedia CommonsPhoto: Gunawan Kartapranata, CC BY-SA 3.0, via Wikimedia Commons

Prambanan, built around AD 850, is the largest Shivaite complex in Indonesia: three main temples to Shiva, Vishnu and Brahma, with the bull Nandi and the vehicles of the gods, and reliefs of the Ramayana. Nearby are Sewu, Plaosan and the hilltop site of Ratu Boko. Together they represent an extraordinary concentration of royal patronage in a small area — a state spending its surplus on religion on a scale that few medieval kingdoms matched.

Prambanan, the Shivaite temple complex built around AD 850 in central Java
Prambanan. Photo: Jakub Hałun, CC BY-SA 4.0, via Wikimedia CommonsPhoto: Jakub Hałun, CC BY-SA 4.0, via Wikimedia Commons

How was the kingdom governed?

Through land, not through an administration. The king ruled from a capital — whose site is still not securely identified — with a court of officials, priests and relatives; below him, the country was organised into wanua, villages or village-clusters, which paid tax in rice and labour and were governed by local elders. The crown's power was the power to grant: to free a village from tax, to give its revenues to a temple, to confirm a local chief in his title.

The sima charters record these grants in remarkable detail, listing the officials present, the boundaries of the land, the offerings made and the penalties for violating the grant. They show a state that governed by consent and record, not by garrisons: the king's authority was accepted because it was legitimate, because it was distant, and because it was profitable to the local elite who received the grants.

What was the economy?

Rice, and the control of it. Java's volcanic soils and monsoon rains supported wet-rice agriculture of great productivity, and the state's power rested on taxing the surplus: the inscriptions record grants of sima — land freed from royal tax for the support of a temple or a religious foundation — and these grants are the main evidence for how the kingdom worked. A king who gave land to a temple gave away revenue; the temples' wealth and the kings' prestige were the same thing.

Trade came second. The rivers of central Java connected the rice plains to the north coast, and the coast was part of an international network that reached China, Srivijaya and India. Old Javanese inscriptions mention ports and ships, and Javanese ships carried rice and spices to Sumatra and beyond; but Mataram's wealth was agricultural, and its politics were the politics of irrigated land.

What did the temples mean?

A political theology in stone. Borobudur is a mandala: a stepped mountain of ten terraces, walked by pilgrims from the realm of desire, through the world of forms, to the formless summit. Its 2,672 relief panels and 504 Buddha statues make it a text as much as a building, and its plan encodes a cosmology — the mountain at the centre of the world, the cosmos arranged around it.

Prambanan is the Shivaite counterpart: three temples in a row, to Shiva, Vishnu and Brahma, with the bull Nandi facing Shiva's shrine and the Ramayana carved along the balustrades. The complex is a royal statement — the king as Shiva's representative on earth, the kingdom as the god's domain — and its scale is a claim about the resources and the legitimacy of the dynasty that built it.

The temples were also economic institutions. They held sima lands, collected rents, employed thousands of priests, craftsmen and servants, and functioned as treasuries and granaries. Building one was an act of state: it mobilised labour, land and wealth on a scale that only a strong kingdom could command.

What do the inscriptions record?

Land, mostly. The great majority of Mataram's charters are sima grants: a king or a local lord frees a piece of land from royal dues and gives its revenues to a religious foundation, and the charter records the transaction in detail — the date, the officials, the boundaries, the offerings, the curses invoked on anyone who violates it. They are legal documents, and they survive because they were carved in stone to last.

The genealogical inscriptions are the exception. The Mantyasih charter of AD 907 lists the kings who preceded Balitung, which is how the dynastic sequence is known at all, and the Canggal and Pucangan stones narrate founding and catastrophe. The rest is administration — which is precisely why the inscriptions are so valuable: they show a state that worked through law, land and religion rather than through conquest.

What ended it?

A raid, and a disputed date. The Pucangan inscription, carved in 1041 for King Airlangga, describes a catastrophe in which the capital was destroyed, the king died and the kingdom collapsed; the agent it names is a local prince, Wurawari of Lwaram. Later accounts made it a Srivijayan invasion — a hypothesis associated with Coedès — and some modern writers have suggested a Merapi eruption; the eruption theory has been rejected on tephra evidence.

The year is the difficulty. Older literature read the stone's date as 928 Śaka, which gives 1006; Coedès and a 2006 volcanological study read it as 938, which gives 1016 or 1017. The site draws the kingdom to 1009, following the older chronology. This entry uses 1016, and says why.

What happened between AD 850 and 1000?

A long, poorly documented decline and shift. After the great temple-building of the ninth century, the inscriptions become sparse; the centre of gravity moved east, from the Kedu plain to the Brantas valley, and by the early tenth century the kings were ruling from a capital in the east. Balitung's charters of AD 899–910 — the first to use the name Mataram — show a kingdom still active, still granting land and still building, but ruling a different landscape.

The period is obscure because the evidence thins: fewer inscriptions, fewer monuments, and no narrative source. What can be said is that the kingdom survived, adapted and moved; that its kings intervened in Bali, where Javanese culture took root; and that by the early eleventh century it was wealthy enough to attract the raid that destroyed it.

Did it have an army?

It had soldiers, but no standing army in the modern sense. The charters mention wadwa — troops, followers, retainers — attached to the king and to local lords, and the temples' reliefs show soldiers with spears, bows and daggers. Campaigns were seasonal, mobilised from the villages, and fought for plunder, tribute and prestige rather than for territory.

That is why the kingdom's fall was so sudden. A state without a permanent army, whose power rested on the loyalty of local lords, could be destroyed by a single successful raid on its capital — which is exactly what happened in 1016, and again and again in Javanese history afterwards.

What is the legacy?

A template. The temple-mountain, the sima grant, the Old Javanese court poem, the fusion of Shivaite and Buddhist royal cult, the idea that a king's authority is religious as well as military — all of these were inherited by Kediri, Singhasari and Majapahit, and through them by modern Java. Borobudur and Prambanan are UNESCO World Heritage Sites and the country's most visited monuments; the Ramayana reliefs at Prambanan are performed as a ballet every dry season.

The name Mataram was reused. A second Mataram sultanate arose in the same region in the sixteenth century, and the modern city of Yogyakarta traces its legitimacy to that later state, not to Sanjaya's kingdom. The continuities are cultural, not dynastic.

How was it rediscovered?

By colonial officials and archaeologists. The temples were never lost — Javanese villagers knew them and told stories about them — but they were buried, overgrown and quarried for stone until the early nineteenth century, when Raffles, the British lieutenant-governor, had them surveyed and published in The History of Java (1817). Borobudur was cleared in the 1830s; Prambanan was photographed and studied later in the century, and both were restored in the twentieth, Borobudur with UNESCO support between 1975 and 1982.

The rediscovery shaped how the kingdom is understood. The colonial scholarship that read the temples as the work of "Indian" colonists has been replaced by an archaeology of local agency: Javanese courts adopting and transforming Indian models, not importing them. The temples are now national monuments, and their reliefs — the Ramayana at Prambanan, the Jataka tales at Borobudur — are read as Javanese texts as much as Indian ones.

Common myths about Mataram

MythWhat the evidence says
The kingdom fell in 1006The Pucangan date is read as 928, 938 or 939 Śaka; 1016 is the more defensible reading, with 1006 in older literature.
Srivijaya destroyed MataramThe inscription names Wurawari of Lwaram; the Srivijaya raid is a modern hypothesis, and Coèdes himself hedged it.
Merapi's eruption ended the kingdomTephra analysis has refuted the eruption theory.
Mataram was a Buddhist kingdomIt was both: Shivaite and Mahayana Buddhist foundations were patronised by the same court, and the Sailendra were Buddhist while the Sanjaya line was Shivaite.
Borobudur was built by one kingIt was built over some sixty years, and its dating is not epigraphically fixed.
"Mataram" was the kingdom's nameThe name is a retrojection: it appears in charters of AD 899–910 and was applied to Sanjaya in AD 907.
The Sailendra and Sanjaya were separate kingdomsTheir relationship — rivals, co-rulers or one family — is unresolved.
The temples were abandoned and forgottenThey were abandoned after the tenth century but never forgotten locally; Raffles's 1817 account made them famous in Europe.

Timeline of Mataram

YearEvent
AD 732Canggal inscription: Sanjaya's foundation
AD 778Kalasan inscription: the Sailendra build a Tara temple
AD 782Kelurak inscription
c. 780–840Borobudur built
AD 824Karangtengah inscription
AD 832Gandasuli inscription
c. AD 850Prambanan built
AD 856Ratubaka/Perot charter
AD 862Pereng inscription
AD 899–910Balitung's charters use the name Mataram
AD 907Mantyasih inscription: the dynastic list
AD 908Wanua Tengah III inscription
928/938 ŚakaThe Pucangan date — 1006 or 1016
1016The capital sacked by Wurawari of Lwaram
1019Airlangga consecrated at Kahuripan
1041Pucangan inscription carved

What the map shows next

At AD 875 on the map Mataram is at its height, and the Balinese kingdoms are its cultural neighbours.

At 1019 on the map Kahuripan has risen from its ruins, and the Srivijaya empire dominates the straits.

Common questions

What was the Mataram Kingdom?
A Hindu-Buddhist kingdom in central Java, founded in AD 732 and destroyed in the early eleventh century, which built Borobudur and Prambanan.
Who founded it?
Sanjaya, according to the Canggal inscription of AD 732.
When did it end?
In 1016, on the best reading of the Pucangan inscription, though 1006 is often given.
What destroyed it?
A raid by Wurawari of Lwaram, according to the inscription; the Srivijaya hypothesis is modern and disputed.
Was it Hindu or Buddhist?
Both: Shivaite and Mahayana Buddhist foundations were patronised by the court, and the Sailendra line was Buddhist.
Did it build Borobudur?
Borobudur was built in its territory and in its era, under Sailendra patronage, between roughly 780 and 840.
How large was it?
Its core was the Kedu and Prambanan plains of central Java; it was not an empire.
What was a sima grant?
A grant of land freed from royal tax, usually to a temple, which is how the kingdom's religious foundations were funded.
Why is the name Mataram used for a later sultanate?
Because the later sultanate, founded in the sixteenth century, took the name of the older kingdom for legitimacy.
What is its legacy?
Borobudur and Prambanan, the Old Javanese literary tradition, and the model of the god-king that later Javanese states inherited.

Sources

Every source below was consulted while writing this entry.

Every source below was consulted while writing this entry.

Primary and official sources

  1. The Canggal inscription (AD 732), Sanskrit text and translation.
  2. The Kalasan (AD 778), Kelurak (AD 782), Karangtengah (AD 824), Gandasuli (AD 832), Ratubaka/Perot (AD 856) and Pereng (AD 862) inscriptions.
  3. The Mantyasih inscription (AD 907) and the Wanua Tengah III inscription (AD 908).
  4. The Pucangan inscription (1041), in Kern's 1913 edition and translation.
  5. UNESCO, Borobudur and Prambanan World Heritage listings (592 and 642).
  6. Balai Konservasi Borobudur, Kemendikbud.
  7. Raffles, The History of Java (1817), volume II.

Scholarship and reference works

  1. Coedès, The Indianized States of Southeast Asia (1968).
  2. de Casparis, Prasasti Indonesia I (1950) and II (1956).
  3. Boechari, on the Sanjaya and Sailendra inscriptions.
  4. Hall, A History of Early Southeast Asia.
  5. Miksic, on Borobudur and early Javanese settlement.
  6. Ricklefs, A History of Modern Indonesia.
  7. Jordaan, on the Bělahan site.
  8. Sundberg, on the dating of Borobudur.
  9. Griffiths et al. (2024), on the Minto stone (listed, not opened).

Data sources for the map

  1. Cliopatria v0.12 (Seshat Global History Databank, CC BY 4.0).
  2. Historical Basemaps (GPL-3.0).

This entry was written from the sources above and last updated .

Text available under CC BY-SA 4.0: reuse it with a credit to The World Through Time and a link to this page.

Border geometry for the map itself comes from Cliopatria v0.12 (Seshat Global History Databank, CC-BY-4.0).

History in your inbox, once a week

A weekly email with new articles and glossary entries. Unsubscribe anytime. Privacy policy.

See the Mataram Kingdom in its world

Open the atlas at AD 875 and every neighbour, rival and successor is on screen with it — then drag the slider and watch what happens next.

Open the map at AD 875 →