The ruler Sri Sultan Hamengkubuwono IX (April 12, 1912 - 1988) held a degree from the Dutch Leiden University, and held for a time the largely ceremonial position of Vice-President of Indonesia, in recognition of his status, as well as Minister of Finance and Minister of Defense.
In support of Indonesia declaring independence from the Dutch and Japanese occupation, in September 5, 1945, Sri Sultan Hamengkubuwono IX of Yogya and Sri Paku Alam VIII in Yogya declared their sultanates to be part of the Republic of Indonesia. The declaration is as follows:
"We, Hamengkubuwono IX, Sultan of the Land of Ngayogyakarta Hadiningrat, declared:
- That Land of Ngayogyakarta Hadiningrat function as a monarchy as a Special Territory of the Republic of Indonesia
- That we as the Regional Head of Yogyakarta held control and power in the Land of Ngayogyakarta Hadiningrat, and upon that cause in which the situation nowadays all government elements in the Land of Ngayogyakarta Hadiningrat from this moment is all under our control and with it too all other authorities we take over entirely.
- That the connection between the Land of Ngayogyakarta Hadiningrat and the Central Government of the Republic of Indonesia is direct and we will only bear responsibility upon our Land directly to the President of the Republic of Indonesia.
By this act, Sultan Hamengkubuwono IX was appointed as governor for life. During the Indonesian National Revolution against the Dutch after World War II (1945-1950), the capital of the newly declared Indonesian republic was temporarily moved to Yogyakarta when the Dutch reoccupied Jakarta from January 1946 until August 1950.
The current ruler of Yogyakarta is his son, Sri Sultan Hamengkubuwono X, who holds a law degree from Universitas Gadjah Mada. Upon the elder sultan's death, the position of governor, according to the agreement with Indonesia, was to pass to his heir. However, the central government at that time insisted on an election. In 1998, Sultan Hamengkubuwono X was elected as governor by the provincial house of representatives (DPRD) of Yogyakarta, defying the will of the central government. "I may be a sultan," he has been quoted in Asia Week as saying, "but is it not possible for me to also be a democrat?"