Realm SE Asia & Oceania 1475–1551 CE

Demak Sultanate

North Java port sultanate that turned Majapahit's collapse into Islamic rule, controlled the rice and spice trade, and tore itself apart in dynastic murder by 1568.

Built from 6 cited sources, 5 rulers, 7 turning points and 5 cities.

Demak SultanateDemak
1475–1551 CE · peak 1533 CE

Demak lay on Java's north coast at the site of the present-day city of Demak, a port fief of the Hindu-Buddhist Majapahit kingdom. Its foundation is traditionally credited to Raden Patah (r. 1475–1518), a Javanese noble related to Majapahit royalty, who was the only Majapahit fiefdom ruler at Glagah Wangi with a Muslim identity before the place was renamed Demak. The town sat at the end of a then navigable channel separating Java from Muria Island, a waterway that carried ships from the northern coast toward the Spice Islands and, via the Serang River, toward the rice-producing interior.

When the Majapahit capital fell to Girindrawardhana of Daha in 1478, Demak stopped sending tribute to the central court and declared independence. Raden Patah built a new Grand Mosque as the center of Islamic teaching and appointed members of the Wali Songo to office: Sunan Kudus as qadi (great judge of religious law), Sunan Giri as mufti, and Sunan Kalijaga as imam and adviser. Demak's revenue came from trade, importing spices and exporting rice to Malacca and the Maluku Islands. Tomé Pires reported that Demak had more inhabitants than any other port in Sunda or Java and was the primary rice exporter to Malacca. Raden Patah's claim of direct descent from King Kertabhumi, killed in the 1478 invasion of Trowulan, gave the dynasty a legitimacy that Majapahit's other successors lacked, and Demak defeated Daha in 1518 on that basis.

Demak's rulers made war to protect and extend these port revenues. Sultan Trenggana's armies marched overland through Madiun while a fleet led by Pati Unus sailed through Sedayu during the campaign against Daha between 1513 and 1518. In 1513 and again in 1521, Pati Unus led expeditions of roughly 100 and 375 ships against Portuguese Malacca, driven by opposition to Portuguese insistence on a monopoly of the spice trade. The Portuguese destroyed so many Javanese vessels in these assaults that the northern ports' trading activity declined sharply afterward. In 1527 Trenggana ordered his general Fatahillah to seize Banten and Sunda Kelapa from the Kingdom of Sunda, after the Portuguese-Sunda alliance of 1522 threatened Muslim commerce; Sunda Kelapa was then renamed Jayakarta.

Demak's power rested on a fragile dynastic and clerical settlement that broke down with the sultans. Pati Unus died childless, and his brothers Raden Kikin and Raden Trenggana contested the succession. Tradition holds that Trenggana's eldest son Prawata, also called Raden Mukmin, stole the magical kris Setan Kober from Sunan Kudus and used it to murder his uncle Raden Kikin beside a river, after which Kikin was remembered as Sekar Seda Lepen, the flower that fell by the river. Trenggana's death in 1546 opened a blood feud: Prawata took the throne as Sunan Mukmin, but Kikin's son Arya Penangsang, lord of Jipang, had him assassinated in 1549, using the same kris. Arya Penangsang then ruled as a ruthless sultan until vassals led by Hadiwijaya of Pajang rose against him and Sutawijaya, later first ruler of Mataram, killed him in 1568, ending Demak as a sultanate.

Demak sat at the end of a navigable channel separating Java from Muria Island, making it a busy port where ships bound for the Spice Islands met rice barges from the Serang River interior. Tomé Pires judged it more populous than any other Sunda or Javanese port, and its rulers drew legitimacy from claimed descent from Majapahit's last king, Kertabhumi, even as they replaced Hindu-Buddhist court symbols with a modified eight-pointed sun inside their new Grand Mosque.

Rulers

Wars & turning points

Rulers & characters

  • Raden Patah r. 1475–1518 CE [3]
    First Sultan of Demak · Demak

    A Javanese noble linked to Majapahit royalty, he declared Demak independent after the Majapahit capital fell in 1478, stopped tribute to the central court, and built the Grand Mosque as the center of Islamic teaching. He appointed Wali Songo figures as qadi, mufti, and imam, fusing Javanese dynastic claim with Sunni Islamic governance.

    Tradition says he was the son of Majapahit's last king and a Chinese princess exiled before his birth.

  • Pati Unus r. 1518–1521 CE [3]
    Second Sultan of Demak · Demak

    Previously ruler of Jepara, he launched two fleets against Portuguese Malacca—about 100 ships in 1513 and 375 in 1521—to break the European monopoly on the spice trade. Both attacks failed, the Javanese fleet was destroyed, and he was killed in the 1521 expedition, after which Javanese port trade sharply declined.

    He was later remembered as Pangeran Sabrang Lor, the Prince who crossed to the North.

  • Trenggana r. 1522–1546 CE [3]
    Third and greatest Sultan of Demak · Demak

    He defeated the Hindu-Buddhist successor state of Daha in 1518 before his formal coronation, then sent his general Fatahillah to capture Banten and Sunda Kelapa in 1527, the latter renamed Jayakarta. His death in 1546 triggered a succession blood feud that unraveled the sultanate.

    He married Fatahillah to the widow of Pati Unus after being impressed by the general's charisma and Islamic learning from Mecca.

  • Sunan Mukmin r. 1546–1549 CE [3]
    Fourth Sultan of Demak · Demak

    Also called Prince Prawata, he had assassinated his uncle Raden Kikin with a stolen magical kris before ascending the throne. His brief reign ended when his teacher's ally Arya Penangsang sent an assassin to kill him and his wife with the same weapon.

    He was killed with the same kris he had earlier used to murder his uncle.

  • Arya Penangsang r. 1549–1568 CE [3]
    Fifth Sultan of Demak · Demak

    Adipati of Jipang, he seized the throne by assassinating his cousin Sunan Prawata. His brutal rule provoked vassal opposition; Ratu Kalinyamat urged Hadiwijaya of Pajang to avenge her husband's death, and in 1568 Sutawijaya killed Penangsang, ending Demak and clearing the way for the Mataram dynasty.

    His killer, Sutawijaya, would become the first ruler of Mataram.

Wars, rebellions & turning points

  1. War Demak declares independence from Majapahit [3]
    Demak vs. Majapahit

    After the Majapahit capital at Trowulan fell to Girindrawardhana of Daha, Raden Patah stopped sending tribute to the central court and declared Demak no longer obliged to Majapahit overlordship, founding an independent Muslim state on the north coast.

    Outcome: Demak became the first Muslim state in Java; northern ports followed its lead in breaking from Majapahit.

    Follow Daha
  2. War First Javanese assault on Portuguese Malacca [3]
    Javanese coastal fleet vs. Portuguese Malacca

    Pati Unus led approximately 100 ships from Javanese ports to seize Malacca, motivated by opposition to the Portuguese monopoly on the spice trade. The Portuguese repelled the attack.

    Outcome: The assault failed and began the depletion of Javanese naval strength.

  3. War Conquest of Daha [3]
    Demak vs. Daha

    Demak's overland army under Raden Patah and Sunan Kudus marched through Madiun while Pati Unus's fleet sailed via Sedayu. The combined force defeated the Hindu-Buddhist successor state at Kediri, and Raden Patah died soon after the victory.

    Outcome: Demak consolidated power as the accepted successor of Majapahit and ended Daha's resistance.

  4. War Second Javanese assault on Portuguese Malacca [3]
    Javanese fleet vs. Portuguese Malacca

    Pati Unus returned with 375 ships to retake Malacca from the Portuguese. The attack failed again, the Javanese fleet was destroyed, and Pati Unus was killed, devastating north-coast trading activity.

    Outcome: Portuguese control of Malacca held; Javanese port trade greatly declined.

  5. War Capture of Banten and Sunda Kelapa [3]
    Demak vs. Kingdom of Sunda

    After learning of the 1522 Portuguese-Sunda alliance, Sultan Trenggana ordered his general Fatahillah to seize the ports of Banten and Sunda Kelapa. Sunda Kelapa was later renamed Jayakarta.

    Outcome: Demak extended its reach to the western end of Java and founded the settlement that became Jakarta.

  6. Civil war Succession blood feud after Trenggana's death [3]
    Arya Penangsang of Jipang vs. Sunan Mukmin

    Trenggana's death triggered civil war between the son of the murdered Raden Kikin and Trenggana's son Sunan Mukmin. Mukmin took the throne but was assassinated in 1549 with the same kris he had used to kill his uncle.

    Outcome: Demak entered terminal instability and never recovered its earlier unity.

  7. War Overthrow of Arya Penangsang [3]
    Vassal coalition led by Hadiwijaya of Pajang vs. Arya Penangsang

    Penangsang's harsh rule alienated his vassals. Hadiwijaya sent Sutawijaya, his adopted son and future founder of Mataram, to kill the sultan, ending the Demak line.

    Outcome: Demak collapsed; the Mataram dynasty rose in its place.

Achievements & reckoning

Achievements

  • First Muslim state in Java [3]

    Demak emerged from a Majapahit fiefdom into an independent sultanate after 1478, becoming the first Islamic polity on the island. Its rulers claimed descent from Majapahit's last king, giving the new faith a local dynastic wrapper that helped Islam spread across northern Java.

  • Grand Mosque of Demak [3]

    Raden Patah built the Grand Mosque as the center of Islamic teaching, and it still stands today, widely believed to be the oldest existing mosque in Indonesia. Its decoration includes a modified Surya Majapahit eight-pointed sun with Hindu associations removed, and the surrounding maqam tombs draw ziyarat pilgrims.

  • Rice export network to Malacca [3]

    Demak imported spices and exported rice to Malacca and the Maluku Islands. Tomé Pires judged it more populous than any other port in Sunda or Java and the primary rice exporter to Malacca, with its channel to Muria Island serving ships bound for the Spice Islands.

  • Wali Songo religious institutions [3]

    The sultanate sheltered the Wali Songo, nine ulama who proselytized among Java's Hindu-Buddhist population. Sunan Kudus served as qadi, Sunan Giri as mufti, and Sunan Kalijaga as imam, embedding madrasa and pesantren learning into the state.

Reckoning

  • Destroyed fleet at Malacca [3]

    Pati Unus's two expeditions against Portuguese Malacca cost roughly 475 ships in total. The 1521 disaster killed the sultan and shattered Javanese naval power, after which north-coast trading activity greatly declined.

  • Dynastic assassinations and civil war [3]

    The royal family was torn by kin-slaying: Raden Kikin was murdered by his nephew with a stolen magical kris, Sunan Mukmin was killed with the same weapon, and Arya Penangsang's men killed Sultan Hadlirin. The blood feud ended only when an outside coalition from Pajang executed Penangsang in 1568.

    Follow Mataram
  • Short imperial lifespan [3]

    Demak lasted as an empire from 1478 to 1546, barely seven decades. Its rapid collapse after Trenggana's death left Java fragmented, with successor powers such as Pajang and Mataram emerging from its wreckage.

Deeper cuts

Religion [3]

The Wali Songo and Javanese Islam

Demak's court was built around the Wali Songo, nine Muslim ulama who proselytized among a population still largely Hindu-Buddhist. Sunan Ampel ordered Raden Patah to establish an Islamic learning center at Glagah Wangi, which grew into Demak and hosted a madrasa and pesantren. The rulers adapted local symbols, modifying the Majapahit eight-pointed sun to remove Hindu associations for use in the Grand Mosque, showing how new faith and old court forms merged.

Sunan Kudus served as qadi, Sunan Giri as mufti, and Sunan Kalijaga as imam in Raden Patah's government.

Daily life [3]

Port society and the Muria channel

Demak stood at the end of a navigable channel separating Java from Muria Island, where deep-draft ships met rice barges from the Serang River interior. The channel later silted up, joining Muria to Java and ending the port's advantage. Merchants, sailors, and rice traders lived in a town described by Tomé Pires as more populous than any other Sunda or Javanese port, exporting rice to Malacca and importing spices from the Maluku Islands.

The channel served ships traveling to the Spice Islands from the 15th to the 18th century before silting closed it.

Trade [3]

Spice trade and the Portuguese rupture

Demak's wealth came from importing spices and exporting rice to Malacca and Maluku. When the Portuguese seized Malacca and demanded a monopoly, Javanese ports united against them. Pati Unus led two armadas—about 100 ships in 1513 and 375 in 1521—against the Portuguese fortress. Both failed, the fleet was destroyed, and the north-coast trade network contracted sharply.

Tomé Pires called Demak the primary exporter of rice to Malacca.

Science [3]

Islamic learning and the madrasa

Raden Patah founded an Islamic learning center at Glagah Wangi that became a madrasa and pesantren, training scholars who served as qadi, mufti, and imam. The court combined Islamic jurisprudence with Javanese political forms, while Fatahillah's years of study in Mecca brought back religious knowledge that shaped Demak's military and diplomatic decisions.

The Grand Mosque functioned as both house of worship and center of Islamic teaching.

Structural lenses

Drafted by GPT-6 Luna (lens-v1.1) from the cited sources.

Material & archaeology [3]

The Great Mosque and the Saints’ Tombs

Demak’s Great Mosque still stands and is widely regarded as Indonesia’s oldest surviving mosque. The surrounding tombs of Wali saints and Demak rulers remain destinations for regional ziyarat, anchoring religious visitation in a built landscape of mosque and burial ground.

Trade & fiscal [3]

Rice Exports Through the Muria Channel

Demak’s port income rested on importing spices and sending rice to Malacca and the Maluku Islands. A navigable channel between Java and Muria Island linked the port to ships moving along Java’s north coast and to the rice-growing interior via the Serang River. As the channel silted up and filled, it joined Muria to Java and altered the waterway that had sustained the port’s reach.

Tomé Pires described Demak as the primary rice exporter to Malacca and more populous than any other port in Sunda or Java.

Thought & mind [3]

Majapahit Descent as Islamic Dynastic Legitimacy

Demak’s rulers claimed descent from Majapahit royalty even as the sultanate established Islamic institutions, including a madrasa and pesantren. Later Javanese babads portrayed Raden Patah as the son of Majapahit’s last king and a Chinese princess; their varying accounts preserve a dynastic claim that connected the new Muslim court to Java’s former royal order.

Underappreciated & strange truths

After Arya Penangsang's assassins killed Sunan Prawata and his wife with the same kris Prawata had used on his uncle, the tradition-bound court of Kudus refused Prawata's sister Ratu Kalinyamat justice, and Penangsang's men later ambushed her and her husband Sultan Hadlirin on the road home, killing Hadlirin.

  • Majapahit symbols in a Muslim mosque [3]

    Although Demak was Java's first Muslim state, its rulers continued to use the Surya Majapahit, the eight-pointed sun of the Hindu-Buddhist empire they had overthrown. They modified it to remove Hindu associations and placed it inside the Grand Mosque, wrapping Islamic rule in the visual language of the old dynasty.

    Follow Grand Mosque
  • A sultan remembered for crossing the sea [3]

    Pati Unus is known in Javanese tradition as Pangeran Sabrang Lor, the Prince who crossed to the North—a nickname earned not from peaceful trade but from leading two doomed armadas against Portuguese Malacca, the second of which killed him and destroyed his fleet.

  • The same kris killed uncle and nephew [3]

    Prince Prawata stole the magical kris Setan Kober from Sunan Kudus to assassinate his uncle Raden Kikin. Years later, Prawata himself, now Sultan Sunan Mukmin, was killed with that same weapon by an assassin sent by his rival Arya Penangsang.

    Follow Sunan Kudus

State ledger

Lifespan
1475–1551 CE
Peak territory
45,495 km²

Connected world

Demak exchanged Javanese rice for Malacca's spice trade, reached the Maluku Islands by northern Java Sea shipping, and passed to Pajang and then Mataram after the civil wars of 1549–1568.

Drafted by HY4 Flash (links-v2.0) from the cited sources.

  • vassalage Majapahit → late 15th century CE [3]

    Demak arose as a port fief of Majapahit: Glagah Wangi was the kingdom's only fiefdom with a Muslim ruler. After the Majapahit capital fell to a Kediri usurper, Raden Patah declared Demak's independence from its overlordship.

  • trade Sultanate of Malacca → 15th–early 16th century CE [3]

    Demak grew wealthy as a port importing spices and exporting rice to Malacca and the Maluku Islands; Tomé Pires called it the primary rice exporter to Malacca and the busiest port in Sunda or Java.

Drafted by Claude Haiku 5.5 (polity-v1.5) from six cited sources · almanac by Nemotron 3.5 Super VL (almanac-v1.2) · deep lenses by GPT-6 Luna (lens-v1.1), and checked that every citation points to one of them. See the evidence How AI is used

IXCities & tongues

Mapped cities & trade towns

CityCountryNear peakPeak pop.GrowthGlobe
SurakartaIndonesia—330k (1950 CE) Locate →
DemakIndonesia—3k (1850 CE) Locate →
SemarangIndonesia—790k (1975 CE) Locate →
KudusIndonesia—31k (1900 CE) Locate →
YogyakartaIndonesia—240k (1950 CE)Dossier → Locate →

Languages across the footprint

LanguageFamilyMacroareaHorizon
KawiAustronesianPapunesiaGlottolog 5.3
Standard IndonesianAustronesianPapunesiaGlottolog 5.3
JavindoIndo-EuropeanPapunesiaGlottolog 5.3

XCulture & letters

From the source

  1. The First Voyage Round the World, by Magellan Antonio Pigafetta (tr. Lord Stanley of Alderley) · 1525 CE (ed. 1874)

    “The question of the exact position of the Moluccas was not definitely ascertained till much later, though a compromise was arrived at in 1529 by the treaty between Spain and Portugal, by which Charles V gave up whatever rights to the Moluccas he imagined he possessed, to Portugal, for a sum of three hundred and fifty thousand ducats.”

    This passage records how, during Demak's expansionist era under Sultan Trenggana, Iberian powers resolved their spice-trade rivalry by payment rather than battle: Spain renounced its claimed Moluccas rights for 350,000 ducats in 1529, showing that the cloves channeling through Javanese ports were valued at fortunes worth royal settlements.

    Model-drafted synthesis · GLM-5.3 Flash

Primary works, letters & books

No matching primary books indexed for this span yet.

XISources & provenance

  1. Cliopatria Historical Polity Borders v0.2.0 (Seshat Databank). CC-BY-4.0.
  2. Wikidata Historical Entities & Lineage Spine. CC0-1.0.
  3. Wikipedia — Demak Sultanate. CC-BY-SA-4.0.
  4. Reba / Chandler Historical Urban Population Estimates (3700 BCE–1975 CE). CC-BY-4.0.
  5. Glottolog 5.3 Global Language & Family Classification. CC-BY-4.0.
  6. Internet Archive — The First Voyage Round the World, by Magellan (Antonio Pigafetta (tr. Lord Stanley of Alderley), 1874). Public Domain (Internet Archive).