Sign In

Hamengkubuwono IX: The Sultan Who Hosted the Republic in Yogyakarta

Hamengkubuwono IX, the sultan who hosted the Republic

Hamengkubuwono IX was the sultan of Yogyakarta who opened his kingdom to the Indonesian Republic in 1946, when the capital was moved to the city after the Proclamation of independence in Jakarta. He had come to the throne in 1940, and he chose to side with the Republic when the nation was fighting to secure its independence from the Dutch. His decision gave the Republic a seat of government and a base from which to resist the return of colonial power. He later served in national cabinets, and he is remembered as a steady, principled leader whose choices shaped the city’s place in the nation’s history.

His story runs from his accession through the decision to side with the Republic, the years in which Yogyakarta served as the seat of government, the defence of the city during the Dutch campaigns and a long career in national government, and it can still be traced today in the palace and the streets of the centre, where his reputation for steady leadership remains part of the city’s public memory.

Accession to the throne in 1940

Hamengkubuwono IX became sultan in 1940, at a time when the Dutch colonial government controlled the Indies and the royal courts of Java operated within its framework. The sultanate of Yogyakarta had a long history as an independent Javanese kingdom, and its ruler held both traditional authority and a set of roles under colonial rule. The new sultan inherited a court with deep ties to Javanese culture and a city with a strong sense of its own identity.

His education and outlook were shaped by the modern schooling of his time, including years in the Netherlands, and he brought a practical sense of administration to the court. These qualities would prove important when the country moved toward independence.

The decision to side with the Republic

When the Republic proclaimed its independence in August 1945, the sultan made a clear choice to support it. He issued a statement of loyalty to the new state, and he placed his kingdom at its disposal. The decision was not without risk, because the Dutch were determined to restore their rule, and any ruler who supported the Republic faced danger.

The support was both political and practical. The sultan offered the Republic a base in his city, and his backing gave the young state a strong foothold in central Java. The decision is one of the defining acts of his reign.

Why Yogyakarta was chosen

Yogyakarta offered the Republic a stable city with a functioning administration, a royal court willing to cooperate and a population that could support a government in exile from the capital. The sultan’s position made the city a natural choice, and in 1946 the seat of government moved to Yogyakarta.

Yogyakarta as the seat of the Republic

From 1946 the city served as the seat of the Republic’s government. Ministers, officials and the president worked in the city, and it became the centre of national politics for a period. Life in the city was shaped by the presence of the government, and the palace and its officials were central to the new state’s work.

The arrangement was a difficult one. The Republic was fighting for recognition at home and abroad, and it had to negotiate, defend its territory and build its institutions at the same time. The city’s role gave it a special place in the nation’s history, and the sultan’s cooperation was essential to that role.

The defence of the city

The Dutch military campaigns of 1948 and 1949 brought fighting to the region. Yogyakarta was attacked, and its leaders and people faced the pressure of military action and occupation. The sultan’s leadership helped to hold the city together during these years, and the city’s survival as a Republican centre became part of his legacy.

On 1 March 1949, Republican forces carried out a coordinated attack on the city and held it for about six hours, which showed that the Republic was still in the fight. The attack became one of the best-known episodes of the independence struggle, and it is remembered in the city as an act of defiance.

Holding the city together

Beyond the fighting, the sultan kept the administration running, supported the people who had lost homes and livelihoods and worked to maintain order. His calm presence during the crisis gave many residents confidence, and his reputation for steady leadership grew from these years.

Service in the national government

After independence was recognised, the sultan served in several national cabinets, taking responsibility for important portfolios, and from 1973 to 1978 he was Indonesia’s second Vice President under President Suharto. In his youth he had attended schools in Yogyakarta, Semarang and Bandung, then the Lyceum in Haarlem in the Netherlands, and he went on to study Indology at Leiden University without finishing the degree. His role in government reflected his standing as a nationalist leader and his practical experience of administration. He worked to build the institutions of the new state, and he remained a respected figure in national politics for many years.

His service gave Yogyakarta a direct link to the capital and kept the city’s voice in national affairs. The sultan’s career showed how a traditional ruler could take a leading role in a modern republic.

The palace and the sites of his rule

The kraton, the royal palace of Yogyakarta, remains the centre of the sultan’s legacy. Its halls, courtyards and museums show the traditions of the court, and the palace continues to host ceremonies and cultural events. The royal family still plays a role in the life of the city, and the palace is a living institution as well as a historic building.

Other sites linked to his rule include government buildings and monuments that recall the years of the Republic in the city. Visitors can trace this history through the streets and the buildings of the centre, and each site offers a different view of the period.

Visiting the palace respectfully

Dress modestly when you visit the palace, follow the signs and the guidance of staff, and avoid touching objects or walking into restricted areas. The palace is a place of ceremony and memory, and visitors should treat it with the same care they would give to any living tradition.

Reputation and public memory

The sultan is remembered as a leader who chose the national cause at a critical moment and who held his city steady through hard years. His reputation rests on his courage, his calm and his commitment to the Republic. Many people in Yogyakarta speak of him with pride, and his decisions are part of the city’s identity.

His story also shows the complexity of the independence period. Traditional rulers, colonial powers, nationalist leaders and ordinary citizens all shaped the outcome, and his role is one thread in a larger story.

Where to learn more in the city

The Yogyakarta city page describes the palace, the markets and the neighbourhoods of the centre, which makes a good walk through the places linked to the sultan’s rule. The wider Yogyakarta region adds more history and sites to explore.

For the national story of the years when the capital moved to the city, the Proclamation monument page covers the moment of independence in Jakarta, and the Jakarta history museum page places the capital’s history in a wider context. Reading these together shows how the Republic’s story moved between the two cities.

Frequently asked questions about Hamengkubuwono IX

Why did he support the Republic? He chose the national cause when independence was declared and believed in a unified Indonesian state. His decision was both principled and strategic.

Did Yogyakarta stay the capital? The city served as the seat of government for a period in the independence years, and its role in the struggle is still remembered today.

Did he hold national office? Yes. He served in several national cabinets after independence.

Can I visit the palace? Yes. The kraton is open to visitors and shows the traditions of the court. Check the arrangements before you go.

Walking the history of a city

Visit the palace, walk the centre, look at the monuments that recall the years of the Republic and read about the sultan’s choices in the context of the independence struggle. Hamengkubuwono IX is remembered as a leader who held his city steady at a turning point, and a visitor who walks Yogyakarta with that story in mind will see its streets and buildings in a new light.

Reading the independence years in the streets

Many of the city’s public spaces carry the marks of the independence years, and walking the centre with a sense of those years makes the story easier to follow. Take a few quiet minutes at each site to picture the people who passed through it, the officials who met there and the crowds who gathered in the days of the struggle. The city rewards a slow pace, and a visitor who lingers will see how closely the sultan’s decisions were tied to its streets.

Related guides: hamengkubuwono x, Sultan Hamengkubuwono II, Hamengkubuwono VIII and the Yogyakarta palace, Nglanggeran ancient volcano at a glance, Yogyakarta Sultanate History: Palaces, Treaty and Sultans.