Only four years later, in October 2010, the nearby volcano of Mount Merapi erupted, spewing lava over nearby villages, the Borobodur and killing 353 people.
After rumbling on and off for two months, the volcano quieted down by December 2010.
Yogyakarta's Adisucipto International Airport (IATA: JOG), 8km east of town, is a small but busy mostly-domestic hub.
Yogyakarta is a bustling town of some half a million people and the most popular tourist destination on Java, largely thanks to its proximity to the temples of Borobudur and Prambanan.
The town is a hub of art and education, offers some good shopping and has a wide range of tourist facilities.
Yogyakarta— despite the official spelling, the name is usually pronounced and not uncommonly written Jogjakarta or just Jogja (JOGH-jah) — is a major tourist destination in Indonesia.
It's the capital city of Yogyakarta Special Region which is in the southern part of the Central Java province, Indonesia.
Strictly speaking, the city (kota) of Yogyakarta is only one of five districts within the semi-autonomous region of Daerah Istimewa Yogyakarta (DIY), literally the "Yogyakarta Special Region".
During the Indonesian war of independence, Sultan Hamengkubuwono IX offered the fledgling Indonesian government his enclave as capital city, thus Yogyakarta became the revolutionary capital city of the republic from 1946 to 1949 when Jakarta was still occupied by the Dutch.
As a result, the central government recognized the Sultan of Yogyakarta as the appointed governor of Yogyakarta Special Region; the only one in Indonesia that is not elected directly by the people.
The Indonesian central government has tried to weaken the sultan's power by calling for direct election for the governor, however the present Sultan Hamengkubuwono X was chosen by an overwhelming majority.
Alas, Yogyakarta lies in one of the most seismically active parts of Java and has thus repeatedly been struck by earthquakes and volcano eruptions.
The worst in recent times was the earthquake of , which killed over 6,000 people and flattened over 300,000 houses.
However, the epicentre was 25km north of the city, which thus avoided the worst of the quake, and a surprisingly effective disaster recovery effort saw most of the physical damage repaired quite quickly.