Skip to content
Bali Frontier
The clifftop sea temple of Uluwatu rising above the Indian Ocean at dusk

History

Hindu Bali and Majapahit: The Last Refuge of a Javanese Golden Age

How Airlangga, the Majapahit conquest of 1343 and the fall of Java made Bali the last home of Hindu-Javanese civilisation, shaping its classical art, dance and caste order.

For a few centuries in the later Middle Ages, the island of Java was the seat of a brilliant Hindu-Buddhist civilisation whose greatest expression was the empire of Majapahit. When that world collapsed, its religion, literature and court arts did not vanish. They crossed the narrow strait to Bali and took root, so that a culture born in Java survived on the smaller island long after Java itself had turned to Islam. That is how Bali became the last home of the Hindu-Javanese golden age.

The story begins with the dynastic ties that already bound the two islands in the eleventh century, runs through the Majapahit conquest of 1343 and the rise of the Gelgel court, and closes with the great migration of priests, scholars and nobles who fled a falling empire. Their inheritance shaped Balinese religion, the caste order, and the classical arts of dance, drama and painting the island is known for today.

Airlangga and the Javanese bond

The links between Bali and Java were already old by the eleventh century, but they were made vivid in the person of Airlangga. He was born in Bali to the Javanese princess Mahendradatta and her Balinese husband, King Udayana of the Warmadewa line described in our history of early Bali. Airlangga grew up to rule a powerful kingdom in eastern Java, and his reign came to stand for the shared blood and culture of the two courts.

Through such marriages and alliances, Javanese religion, Old Javanese literature and courtly practice flowed steadily into Bali. The island was never a mere province of Java, and it kept its own kings and customs, but the two were bound together in a way that made later Javanese intervention almost a family affair. When Java’s rulers turned their eyes east, they came not as strangers but as cousins asserting a claim.

The conquest of 1343

That claim was made good in the fourteenth century by Majapahit, the last and greatest of the Hindu-Javanese empires. After an earlier raid by the kingdom of Singhasari in 1284, Majapahit mounted a full conquest of Bali in 1343. The campaign is bound up in tradition with Gajah Mada, the empire’s iron-willed chief minister, who had sworn to bring the islands of the archipelago under Majapahit authority.

The conquest ended the independence of the old Balinese kingdom centred at Bedulu, whose last ruler is remembered in legend as the tyrant Bedulu. In its place Majapahit set up a client court and planted a Javanese aristocracy on the island. The families descended from these newcomers would form the ruling class of Bali for the next five hundred years, and much of the island’s later social order dates from this moment of conquest.

The clifftop temple and ocean panorama at Uluwatu, a sea shrine tied to Bali's priestly reformers

Gelgel and the Balinese golden age

After the conquest the paramount court settled first at Samprangan and then at Gelgel, near modern Klungkung in the south-east. Under a line of kings who held the exalted title Dewa Agung, the Gelgel court reached its height in the fifteenth and sixteenth centuries and claimed authority over the whole island and beyond. This was the golden age of classical Balinese culture, when religion, literature and the arts were codified under royal patronage.

Tradition credits the priest Dang Hyang Nirartha, who came from Java in the sixteenth century, with reforming Balinese religion and founding or renewing many temples, among them the dramatic sea shrines of Uluwatu and Tanah Lot. Court poets composed and copied Old Javanese texts, temple architecture flourished, and the rituals and social forms of the island were given the shape they would keep. When Gelgel’s power later fractured, its prestige passed to the royal house of Klungkung, which continued to claim the senior rank among Balinese kings.

The fall of Java and the great migration

While Gelgel flourished, the world that had produced it was ending. Through the fifteenth century, Islam spread across Java, carried by traders and teachers, and the Majapahit empire weakened and broke apart around the year 1500. As the old order collapsed, many of Java’s Hindu priests, scholars, artists and nobles chose exile over conversion and moved east to Bali, where a Hindu court still reigned.

They brought with them the accumulated inheritance of centuries: sacred texts and the Old Javanese language in which they were written, the epics of the Ramayana and Mahabharata, styles of painting and sculpture, music and the codes of courtly life. Bali received this legacy and preserved it. In this way a civilisation that had grown up on Java survived on Bali after Java itself had become largely Muslim, and the island earned its lasting description as the last refuge of Hindu-Javanese culture.

Caste, the Bali Aga and a layered society

The Javanese inheritance reshaped Balinese society. From it came the catur wangsa, the four broad ranks that still order traditional life: the Brahmana priestly families, the Ksatria of royal and warrior descent, the Wesia, and the Sudra who make up the great majority of ordinary people. Balinese caste is not identical to the Indian system and touches mainly titles, ritual duties and etiquette, but its framework arrived with the courtly culture strengthened after 1343.

Not everyone accepted this order. Communities that trace their roots to before the Majapahit conquest, the Bali Aga or original Balinese, kept older customs and rejected the Javanese court model. Villages such as Tenganan in the east and Trunyan on Lake Batur preserve distinct rituals, forms of village self-rule and architecture to this day. Their survival is a reminder that the golden age, for all its brilliance, was layered onto a society that was already ancient.

Terraced rice fields and misty hills near Ubud, the cultural heart of highland Bali

The living inheritance

The reason this distant history still matters is that so much of it is alive. The Old Javanese texts recited by priests at Balinese ceremonies, the caste titles woven into daily courtesy, the masked dances and shadow plays that retell the Indian epics, and the painting traditions preserved around Klungkung all descend from the golden age. The gamelan music, the temple festivals and the offerings that fill the island’s ritual year rest on foundations laid in the centuries after Majapahit.

For a long time this world lay beyond the reach of outside powers, protected by Bali’s independence and its formidable kings. That independence would eventually be challenged from the sea by a European trading power, opening the harsh colonial chapter told in our history of Dutch colonial Bali. Before that, though, Bali had already done something remarkable: it had become the keeper of a golden age that its birthplace had forgotten.

Frequently asked questions

Who was Airlangga and why does he matter to Bali?+

Airlangga was an eleventh-century king born in Bali to a Balinese father and the Javanese princess Mahendradatta. He went on to rule a powerful kingdom in eastern Java and, through his family, tied the Balinese and Javanese courts closely together. His reign symbolises the deep dynastic and cultural links between the two islands, links that would later make it natural for Java's Hindu elite to see Bali as a refuge.

When did Majapahit conquer Bali?+

The Javanese empire of Majapahit conquered Bali in 1343, in a campaign associated with its formidable chief minister Gajah Mada. The conquest ended the independence of the old Balinese kingdom based at Bedulu and brought the island firmly under Javanese overlordship. Majapahit installed a client court and a Javanese aristocracy whose descendants would rule Bali for centuries.

What was Gelgel?+

Gelgel, near Klungkung in south-east Bali, became the seat of the island's paramount kings after the Majapahit conquest, following an earlier centre at Samprangan. From the fifteenth and sixteenth centuries the Gelgel court presided over a golden age of Balinese art and religion and claimed authority over the whole island. Its ruler held the title Dewa Agung, and the later royal house of Klungkung traced its descent and prestige directly from Gelgel.

Why is Bali called the last refuge of Hindu-Javanese civilisation?+

As Islam spread across Java through the fifteenth century and the Majapahit empire declined and fell around 1500, many Hindu-Javanese priests, scholars, artists and nobles moved east to Bali. They carried with them the literature, religion, court arts and social order of the old Java. Bali absorbed this inheritance and preserved it after Java itself had become largely Muslim, which is why the island remains the great surviving home of Hindu-Javanese culture.

How did the caste system reach Bali?+

Bali's system of four broad social ranks, the catur wangsa, came with the Javanese courtly culture strengthened after the Majapahit conquest. It distinguishes the Brahmana priestly families, the Ksatria of royal and warrior descent, the Wesia, and the Sudra who form the great majority of ordinary Balinese. Balinese caste governs titles, ritual roles and traditional etiquette, and it differs in important ways from the Indian model, but its origins lie in this Javanese inheritance.

What is the difference between Bali Aga villages and the rest of Bali?+

The Bali Aga, sometimes called the original Balinese, are communities that trace their identity to before the Majapahit conquest and that kept older customs and social structures rather than adopting the Javanese court model and its caste order. Villages such as Tenganan in the east and Trunyan by Lake Batur are the best known. They preserve distinct rituals, village democracy and architecture, and they offer a window onto Balinese life as it was before the Javanese golden age reshaped it.

How old are Balinese dance and drama?+

Balinese performing arts draw on very old ritual roots, but their classical forms owe much to the Hindu-Javanese court culture that flowered after the Majapahit period. Dance-dramas retell episodes from the Ramayana and Mahabharata, the great Indian epics preserved in Old Javanese literature. Later styles continued to develop into the twentieth century, but the temple offerings, masked dances and gamelan music you see today rest on foundations laid in this classical age.

Where can visitors see this heritage in Bali today?+

The Klungkung area, heir to the Gelgel court, holds the painted ceilings of the Kertha Gosa pavilion and the royal history of the Dewa Agung line. Brahmana priestly traditions, the Old Javanese literature recited at ceremonies, the caste titles woven into daily etiquette and the epic stories danced at temple festivals across the island are all living survivals of the Hindu-Javanese golden age preserved on Bali.