Open Travel Guide
History of Yogyakarta

Yogyakarta History & Heritage Guide 2026

The history of Yogyakarta told through its places: sites worth the detour and the context they need.

The short answer: start with Borobudur Temple, Prambanan Temple Complex and Kraton (Sultan's Palace). This guide profiles 7+ historical sites in Yogyakarta, with prices, timing, and the practical notes that decide whether each one earns a place in your plan.

Yogyakarta, known locally as 'Jogja', is a vibrant cultural and artistic hub on the island of Java in Indonesia. Home to two UNESCO World Heritage Sites—Borobudur and Prambanan temples—and the storied Kraton royal palace, it is considered the spiritual heart of Javanese culture. The region blends ancient history, living traditions, volcanic landscapes, and a thriving contemporary arts scene into one of Southeast Asia's most compelling destinations.

Yogyakarta sits at the heart of Java's most ancient and storied civilization. The region was the center of the Mataram Hindu kingdom from the 8th–10th centuries, which built both Borobudur and Prambanan—two of the greatest religious monuments in world history. After the Mataram kingdom's decline, the region became central to the Islamic Mataram Sultanate (16th–18th centuries), before being divided into the Yogyakarta and Surakarta (Solo) Sultanates in 1755. Yogyakarta played a pivotal role in Indonesia's independence struggle (1945–49), serving as the revolutionary capital, and the Sultan's political support was crucial to the republic's survival. Today the city is unique in Indonesia as a sultanate-province where the Sultan serves simultaneously as hereditary monarch and elected governor.

Historical timeline

Key moments that shaped Yogyakarta.

  1. 1

    Sailendra and Sanjaya Kingdoms

    8th century AD

    The Buddhist Sailendra dynasty builds Borobudur (~770-825 AD) while the Hindu Sanjaya dynasty constructs Prambanan (~850 AD). Java is the center of competing Buddhist and Hindu power.

  2. 2

    Mataram Collapse

    928 AD

    The Central Javanese kingdom collapses, possibly due to a catastrophic Merapi eruption. Political and cultural center shifts to East Java.

  3. 3

    Islamic Mataram Kingdom

    1500s

    The Islamic Mataram Sultanate rises as the dominant power in Java, eventually controlling most of the island. Kotagede becomes its first capital.

  4. 4

    Dutch VOC Interference

    1677

    The Dutch East India Company (VOC) begins interfering in Mataram succession disputes, gradually increasing colonial control over Java.

  5. 5

    Founding of Yogyakarta Sultanate

    1755

    The Giyanti Treaty divides the Mataram Sultanate into the Yogyakarta Sultanate (Sultan Hamengkubuwono I) and the Surakarta Sultanate. The Kraton palace is built.

  6. 6

    Taman Sari Built

    1758

    Sultan Hamengkubuwono I constructs the Taman Sari Water Castle as a royal garden and pleasure palace.

  7. 7

    Fort Vredeburg Constructed

    1760

    The Dutch colonial government builds Fort Vredeburg directly opposite the Kraton palace to monitor the Sultan.

  8. 8

    British Assault on Kraton

    1812

    British forces under Stamford Raffles storm and plunder the Yogyakarta Kraton during the brief British interregnum of Java, looting the royal treasury.

  9. 9

    Java War (Diponegoro War)

    1825-1830

    Prince Diponegoro leads a major armed uprising against Dutch colonial rule from Yogyakarta, one of the most costly wars in Dutch colonial history. Diponegoro is captured and exiled in 1830.

  10. 10

    Indonesian Independence Declaration

    1945

    Indonesia declares independence on August 17, 1945. Sultan Hamengkubuwono IX immediately declares support for the republic.

  11. 11

    Yogyakarta as Revolutionary Capital

    1946-1949

    After the Dutch recapture Jakarta (Batavia), Yogyakarta serves as the capital of the Indonesian Republic. The Sultan provides financial support and political legitimacy to the revolution.

  12. 12

    Indonesian Sovereignty Recognized

    1949

    The Netherlands formally transfers sovereignty to Indonesia. Yogyakarta's role in the revolution is recognized by making it a Special Region with the Sultan as governor.

  13. 13

    Yogyakarta Earthquake

    2006

    A 6.3-magnitude earthquake strikes south of Yogyakarta city on May 27, 2006, killing nearly 5,800 people and damaging Prambanan and surrounding villages.

Historical eras

The chapters of Yogyakarta's past.

700–1000 AD

Buddhist-Hindu Period

The golden age of Central Javanese civilization when competing Buddhist (Sailendra) and Hindu (Sanjaya) dynasties built the world's greatest religious monuments—Borobudur and Prambanan.

1500s–1755

Islamic Mataram Period

The rise of the Islamic Mataram Sultanate and Java's conversion to Islam. Kotagede became the first capital before moving to Kerta, then Plered, then Kartasura.

1755–1945

Yogyakarta Sultanate Period

The independent Yogyakarta Sultanate under Dutch colonial oversight. The Kraton and Taman Sari built; Dutch Fort Vredeburg constructed opposite; Diponegoro War (1825-30).

1945–present

Independence Period

Yogyakarta's role as Indonesia's revolutionary capital (1946-49) and its status as a Special Region. The Sultan's political and cultural significance continues to the present day.

Historical sites

Places where Yogyakarta's past comes alive.

8th–9th century

Borobudur Temple

The world's largest Buddhist temple, built by the Sailendra dynasty around 770–825 AD. A nine-tiered pyramid of 2,672 relief panels tells Buddhist stories across 6 km of carved narrative panels.

Where: Borobudur, Magelang (near Yogyakarta)

Admission: $25

9th century

Prambanan Temple Complex

The largest Hindu temple complex in Indonesia, built by the Sanjaya dynasty around 850 AD and dedicated to Shiva, Vishnu, and Brahma. Originally 240 temples filled the 39-hectare compound.

Where: Prambanan, Sleman

Admission: $20

1755–present

Kraton (Sultan's Palace)

The living royal palace built by Sultan Hamengkubuwono I in 1755, still home to the Sultanate family. Contains museums, performance pavilions, and royal regalia.

Where: Kraton, Yogyakarta City

Admission: $3

1758

Taman Sari Water Castle

Royal bathing complex with pools, pavilions, underground passages, and a sunken mosque, built for Sultan Hamengkubuwono I as a private retreat.

Where: Patehan, Kraton, Yogyakarta

Admission: $2

1760 (Dutch colonial)

Fort Vredeburg

Dutch colonial fort built directly opposite the Kraton in 1760 to monitor the Sultan. Now a museum documenting Indonesia's independence struggle through diorama rooms.

Where: Ngupasan, Gondomanan, Yogyakarta

Admission: $0.50

8th–9th century

Ratu Boko Palace Complex

A sprawling hilltop royal compound of gateways, bathing pavilions, and terraced gardens from the 8th century with extraordinary views over the Prambanan Plain.

Where: Bokoharjo, Prambanan, Sleman

Admission: $15

16th century (Islamic Mataram)

Kotagede Old City

The ancient first capital of the Islamic Mataram Sultanate with the royal tomb of Sultan Senopati, old Javanese-Dutch colonial architecture, and the traditional silver-smithing quarter.

Where: Kotagede, Yogyakarta City

Admission: Free

Museums

Curated collections that tell Yogyakarta's story.

Museum

Sonobudoyo Museum

Yogyakarta's premier cultural museum with an extensive collection of Javanese art, batik, keris daggers, wayang puppets, Hindu-Buddhist artifacts, and daily Wayang Kulit performances on select evenings.

Hours: 8:00 AM – 3:30 PM (Tue–Sun)

Admission: $1

Museum

Fort Vredeburg Museum

Indonesian independence revolution museum in a Dutch colonial fort, featuring detailed dioramas recreating key moments from 1945-1949. Excellent value and historically engaging.

Hours: 8:00 AM – 4:00 PM (closed Mon)

Admission: $0.50

Museum

Ullen Sentalu Museum

The best private museum in Yogyakarta, presenting Javanese royal culture through an extraordinary collection of royal batik, portraits, and cultural artifacts in a beautiful hillside setting.

Hours: 9:00 AM – 4:00 PM (closed Mon)

Admission: $6

Museum

Affandi Museum

Former home and studio of Indonesia's greatest painter, Affandi, preserved as a museum with hundreds of his expressionist works.

Hours: 9:00 AM – 4:00 PM (closed Mon)

Admission: $3

Historical tours

Guided experiences that bring history to life.

Tour

Walking tours

Free guided heritage walking tours of Kotagede depart from Jl. Kemasan on weekends; heritage walk maps available from tourist information at Fort Vredeburg

Tour

Day tours

Full-day historical Prambanan Plain temple circuit tours $25-50 including transport; Borobudur-Prambanan combo day tours $30-60

Tour

Private tours

Private certified guides from $30-50 per half day; arrange through guesthouses, tourist information center at Fort Vredeburg, or Yogyakarta tourism office