According to special status granted to the Yogyakarta state when the Republic of Indonesia was formed, the hereditary king is to hold the position of governor of the province. However, this provision was not honored by the Indonesian central government when Hamengkubuwono X ascended the throne in 1988. The then-serving hereditary vice-governor Sri Paku Alam VIII, prince of an enclave within Yogyakarta, was instead elevated to the position of governor.
In 1998 the central government required an election be held for the post of governor, and Hamengkubuwono X was elected by the province's assembly.
He was educated in law at the Universitas Gajah Mada in Yogyakarta.