Yogyakarta is the soul of Java. On an island full of megacities and volcanoes, this city —Jogja to everyone— holds something different: it is Indonesia's last living kingdom, still ruled by a sultan, and the great storehouse of traditional Javanese culture. Batik, court dance, wayang kulit shadow puppetry and the hypnotic music of the gamelan were born here and are still alive. Walking around Yogyakarta, you feel the pulse of a refined, spiritual Java that lives side by side with the youthful energy of a big university city.
But if Yogyakarta draws travellers from all over the world, it is above all because of what lies around it. Less than an hour away stand two of the most extraordinary monuments on the planet: Borobudur, the largest Buddhist temple in the world, from the 9th century, ideal for watching the sunrise among stupas and volcanoes; and Prambanan, the majestic Hindu temple complex from the same period. Add to that the smoking Merapi volcano, the wild beaches of the south, underground caves and artisan villages. Jogja is the perfect base for all of it.
This guide covers the best of Yogyakarta and its surroundings with a practical, warm approach: what to see in the city (the sultan's palace, the water castle, bustling Malioboro street), how to organise trips to Borobudur and Prambanan, how to get around by becak, train or Grab, and where to eat delicious Javanese food. Jogja is best enjoyed without rushing: it's a city to go with the flow, learn, buy handicrafts and use as a springboard to the wonders of Central Java.
Yogyakarta has its roots in the great Hindu-Buddhist kingdoms that flourished in Central Java between the 8th and 10th centuries, the same civilisation that built Borobudur and Prambanan. Centuries later, in 1755, the Treaty of Giyanti split the powerful Sultanate of Mataram and gave rise to the Sultanate of Yogyakarta, founded by Prince Mangkubumi, who took the title Hamengkubuwono I and built the palace (Kraton) that is still the heart of the city. Yogyakarta was a centre of resistance against Dutch colonial rule, especially during the Java War (1825-1830) led by Prince Diponegoro. Its finest hour came after independence: between 1946 and 1948 it was the capital of the young Republic of Indonesia, while Jakarta was in Dutch hands, and Sultan Hamengkubuwono IX firmly backed the revolution. In gratitude, Yogyakarta was granted a special status that allows it to keep its monarchy to this day. The full story is on our history page.
Read the full history ↓The political and cultural heart of Indonesia: home of Borobudur and the great Javanese empires, of the capital Jakarta and of a chain of volcanoes that defines the island.
Read the history of Java →If you book from here we earn a commission and you pay no more. Prices and availability come from Civitatis.
No exact prices: a scale from $ (budget) to $$$$$ (luxury), with 2-3 options per category.
Origins, formation and what the sources say.
The Yogyakarta region holds some of the deepest roots of Javanese civilisation. On the fertile Kedu Plain, between the Merapi and Merbabu volcanoes, one of the most brilliant cultures of Southeast Asia flourished between the 8th and 10th centuries: the ancient kingdom of Mataram (Mataram Kuno), ruled by dynasties such as the Buddhist Sailendra and the Hindu Sanjaya. It was this civilisation, made immensely rich by rice and trade, that built the two monuments that make the area famous today: the great Buddhist temple of Borobudur and the Hindu complex of Prambanan, both less than an hour from present-day Yogyakarta.
Central Java back then was a mosaic of kingdoms where Hinduism and Buddhism, which had arrived from India, blended with local beliefs to create a sophisticated culture, with monumental architecture, its own script and a refined court. For reasons still debated (perhaps volcanic eruptions, epidemics or political change), around the 10th century the centre of power moved to eastern Java, and the Kedu Plain slipped into the background for centuries, its great temples gradually covered by jungle and ash.
That Hindu-Buddhist heritage, however, was never fully erased: it remained carved in the stone of the temples and in the Javanese cultural bedrock, with its Ramayana and Mahabharata epics, which are still alive today in wayang shadow puppetry and in dance. Yogyakarta is, in a sense, the modern heir to that ancient splendour.
The Yogyakarta we know was born from the division of an empire. In the late 16th century the Mataram Sultanate arose in Central Java, a powerful Islamic kingdom that came to dominate much of Java under rulers such as Sultan Agung, and whose first capital was at Kotagede, today a neighbourhood of Yogyakarta. Over time, however, internal succession struggles and the growing interference of the Dutch East India Company (VOC) weakened and fragmented the kingdom.
The breaking point came in 1755 with the Treaty of Giyanti, a Dutch-brokered agreement that split old Mataram in two: the Surakarta Sunanate (Solo) and the new Yogyakarta Sultanate. The latter went to Prince Mangkubumi, a rebel leader who had fought for years and who took the title of Sultan Hamengkubuwono I. That same year he founded his new court and began building the Kraton, the great palace that is still the heart of the city, laid out according to Javanese cosmology along a sacred axis linking Mount Merapi with the Southern Sea.
This is how Yogyakarta was born as the capital of a sultanate, with its palace, its Taman Sari water castle, its squares and its court life. From the start it was a centre of Javanese culture (dance, batik, gamelan, wayang) and, at the same time, a focus of pride and resistance against the colonial power growing around it.
The 19th century pitted Yogyakarta against the full force of colonialism. Growing Dutch pressure on land, taxes and court life caused deep discontent. The explosion came from a member of Yogyakarta's own royal house: Prince Diponegoro, the eldest son of a sultan, a deeply religious man who was critical of the court's decadence and of European interference.
In 1825 Diponegoro took up arms and sparked the Java War (Perang Diponegoro), the bloodiest and most costly conflict in the entire history of Dutch colonial rule in the archipelago. For five years his followers waged a guerrilla war across Central Java, with a strong religious and popular dimension. The war ended in 1830, when Diponegoro was treacherously captured during negotiations under a flag of truce and sent into exile; he died years later in Celebes (Sulawesi). The conflict left hundreds of thousands dead, mostly from famine and disease, and devastated Central Java.
Over time Diponegoro became one of Indonesia's great national heroes, a symbol of resistance against colonialism. After the war the Dutch tightened their control and curtailed the power of the sultanates, but Yogyakarta kept its royal house and its identity, and remained the great stronghold of Javanese culture throughout the colonial period.
Yogyakarta's finest hour came with the birth of Indonesia. After independence was proclaimed in 1945 and the Dutch tried to retake their colony, the young republic found itself in a desperate situation: in 1946, with Jakarta increasingly unsafe and under pressure, the republican government moved its capital to Yogyakarta. For almost three years, between 1946 and 1948, this city was the de facto capital of Indonesia and the nerve centre of the revolution.
The sultan's role was decisive. Hamengkubuwono IX, the ruler of Yogyakarta, backed the republican cause wholeheartedly: he put his palace and his resources at the service of the revolution, protected the fighters and refused to collaborate with the Dutch. When Dutch troops occupied Yogyakarta in December 1948 and captured the republican leaders (Sukarno and Hatta), the resistance did not stop. In March 1949, in the famous 'Serangan Umum' (the General Offensive of 1 March), Indonesian guerrilla forces, with the sultan's backing, took the city by surprise for six hours. It was a brief blow in military terms but had an enormous impact: it showed the world that the republic was still alive and stepped up the international pressure that would lead to the recognition of independence at the end of 1949.
In gratitude for that crucial role, the new Indonesia granted Yogyakarta a unique political status as a Special Region, which allows it to keep its monarchy. That is why, to this day, the Sultan of Yogyakarta is also, by right, the governor of the region, a case unmatched anywhere else in the republic.
Yogyakarta entered the 21st century true to its dual identity: guardian of Javanese tradition and, at the same time, a young and dynamic city. It is one of Indonesia's great university centres, with tens of thousands of students who give it a very particular creative, artistic and coffee-shop energy. Meanwhile the Kraton still stands, home to Sultan Hamengkubuwono X, and cultural life (batik, dance, gamelan, wayang) continues to be passed down from generation to generation. In 2023 the city's cosmological axis, which links Merapi, the Kraton and the Southern Sea, was recognised by UNESCO as a World Heritage Site, joining Borobudur and Prambanan, which were already on the list.
But living at the foot of Merapi, the country's most active volcano, comes at a price. The region has suffered recent disasters: the major Merapi eruption of 2010, which killed hundreds of people and forced mass evacuations, and the devastating earthquake of May 2006, which struck the Yogyakarta and Bantul area, leaving more than five thousand dead and tens of thousands of homes destroyed. Used to living with the force of the earth, the city rebuilt with remarkable resilience, and today the volcano itself is a tourist attraction, with jeep tours across its affected slopes.
Today Yogyakarta is one of Indonesia's best-loved destinations: a base for the great temples, the capital of Javanese culture, a city of students, craftspeople and good food, and the last living kingdom in the republic. Like few other places, Jogja combines the depth of more than a thousand years of history with the pulse of a city that looks ahead.