Open the interactive atlas →
Anti-colonial & freedom

Diponegoro and the Java War

A Javanese prince with visions of a holy war led peasants and religious teachers against Dutch rule. The war lasted five years, and at least 200,000 Javanese civilians died.

When
1825 – 1830
Where
Yogyakarta, Java, Indonesia
Facts checked
2026-12-04

See it on the map →

Raden Saleh's The Arrest of Pangeran Diponegoro (1857), a Javanese painter's answer to Dutch versions of the scene.
Raden Saleh's The Arrest of Pangeran Diponegoro (1857), a Javanese painter's answer to Dutch versions of the scene. Raden Saleh · Public domain · Wikimedia Commons
01

What is the background to this event?

In the early nineteenth century, the Dutch and, for a time, the British strengthened colonial control over Java at the expense of its princely states.1

  • The British introduced a land tax payable in cash, which caused hardship for peasants.1
  • Prince Diponegoro, eldest son of a sultan of Yogyakarta, had been passed over for the throne and became estranged from the court and the colonial government.1
  • A millenarian movement was growing, and Diponegoro claimed visions calling him to holy war.1
02

Who were the key people?

  • Prince Diponegoro

    Leader of the war; exiled until his death in 1855.

  • Nyi Ageng Serang

    A woman who commanded a cavalry unit for the rebels.

  • Sentot Prawirodirjo

    A leading rebel commander.

  • Hendrik Merkus de Kock

    The Dutch commander.

03

What happened?

In July 1825, tensions over a government road project sparked Diponegoro's rebellion.1

  • The rebels besieged Yogyakarta, and defeated Dutch forces several times in 1826.1
  • Other leaders rose on Java's north coast and in East Java.1
  • The war became a guerrilla war, and Diponegoro's popular support made it hard for the Dutch to win.1
  • From 1827, the Dutch built networks of small forts that gradually hemmed the rebels in.1
  • In 1830, Diponegoro was captured at Magelang while meeting de Kock for negotiations.1
04

What happened next?

  • Exile: Diponegoro was exiled to Manado and then Makassar, where he died in 1855.1
  • Colonial control: the princely states lost most of their power, and the Dutch ruled Java unchallenged.1
  • The Cultivation System: the Dutch then forced Javanese peasants to grow export crops, earning huge revenues.1
05

Why does it matter?

The Java War was the last major armed resistance to Dutch rule in Java until the Indonesian revolution a century later.1

  • It was led by a prince, but fought and suffered by peasants.
  • Diponegoro was captured during negotiations and exiled, dying in Makassar in 1855.1
  • With resistance crushed, the Dutch forced Javanese peasants to grow export crops under the Cultivation System, earning huge revenues.1

Go further

What do others say?How it was seen at the time, and where historians disagree

At the time

The Dutch saw a rebellious prince; Diponegoro saw himself as a just ruler fighting for Islam and Java.2

Debates since

  • Anti-colonial hero? Indonesia honours him as a national hero; historians such as Peter Carey stress the war's roots in Javanese religion and court politics.2
  • Violence on all sides: about 15,000 Dutch troops and 20,000 rebels died; at least 200,000 Javanese civilians died from violence, disease and famine.1
How do we know?The evidence, and a source from the time
  • Diponegoro's autobiography (Babad Diponegoro), written in exile.2
  • Dutch military records.

Primary source: Painting

'The Submission of Prince Dipo Negoro to General De Kock', painted for the Dutch by Nicolaas Pieneman, about 1835.
'The Submission of Prince Dipo Negoro to General De Kock', painted for the Dutch by Nicolaas Pieneman, about 1835. Nicolaas Pieneman · Public domain · Wikimedia Commons
What is it?
Painting
Made by, and when
Nicolaas Pieneman, about 1835

A Dutch painting of Prince Diponegoro's capture in 1830, showing it as a calm 'submission'. In fact Diponegoro had come to negotiate with General de Kock and was arrested. In 1857 the Javanese painter Raden Saleh painted his own version of the scene, which presents it very differently.

Reading it

The Dutch painter shows Diponegoro's capture as a calm 'submission'. In fact he had come to negotiate and was arrested. In 1857 the Javanese painter Raden Saleh painted the same scene very differently, giving the prince his dignity back — a rare case where we can set two versions of the same moment side by side.

How is it remembered?Memorials, anniversaries and arguments over memory
  • Raden Saleh's painting The Arrest of Pangeran Diponegoro (1857) presents the prince with dignity, answering Dutch versions.
  • The Babad Diponegoro is listed in UNESCO's Memory of the World Register.
Open questionsWhat this story leaves unresolved
  • Why did peasants follow a prince into war?
  • How did religion shape the rebellion?
  • Was Diponegoro's arrest during negotiations a betrayal?
  • Why did so many civilians die?
Similar eventsOther struggles like this one
  • 1945The Battle of Surabaya — Weeks after Indonesia declared independence, the young people of Surabaya tore the blue from a Dutch flag and then fought British and Indian troops street by street — a defeat that became a national legend.
  • 248 CELady Triệu's Rising — Two centuries after the Trưng sisters, a young woman led the people of northern Vietnam against Chinese rule. She is remembered as riding into battle on an elephant.
  • 1896The Katipunan — A secret society founded by a Manila clerk and his friends grew to tens of thousands of members. When the Spanish discovered it in 1896, its members tore up their identity papers and began the Philippine Revolution.
Find out moreBooks, websites and places to visit
References
  1. Wikipedia, 'Java War', on the background, Diponegoro, the course of the war, his capture and exile, the death toll and the Cultivation System.
  2. Peter Carey, The Power of Prophecy: Prince Dipanagara and the End of an Old Order in Java, 1785–1855 (KITLV Press, 2007).

All stories · Open this story in the interactive atlas · Glossary of key words