Prince Diponegoro (; born Bendara Raden Mas Mustahar, ; later Bendara Raden Mas Antawirya ; 11 November 1785 – 8 January 1855), also known as Dipanegara, was a Javanese prince who opposed the Dutch colonial rule. The eldest son of the Yogyakartan Sultan Hamengkubuwono III, he played an important role in the Java War between 1825 and 1830. After his defeat and capture, he was exiled to Makassar, where he died, 69 years old. His five-year struggle against the Dutch control of Java has become celebrated by Indonesians throughout the years, acting as a source of inspiration for the fighters in the Indonesian National Revolution and nationalism in modern-day Indonesia among others. He is a national hero in Indonesia. Early life Diponegoro was born on 11 November 1785 in Yogyakarta, and was the eldest son of Sultan Hamengkubuwono III of Yogyakarta. During his youth at the Yogyakartan court, major occurrences such as the dissolution of the VOC, the British invasion of Java, and subsequent return to Dutch rule took place. During the invasion, the Sultan Hamengkubuwono II, pushed aside in his power on 1810 in favor of Diponegoro's father, used the general disruption to regain control. In 1812 however he was once more removed from the throne and exiled off-Java by the British forces. In this process, Diponegoro acted as an adviser to his father and had apparently provided aid to the British forces to the point where Raffles offered him the Sultan title which he declined, perhaps due to the fact that his father was still reigning. When the sultan died in 1814, Diponegoro was passed over for the succession to the throne in favor of his younger half brother, Hamengkubuwono IV (r. 1814–1821), who was supported by the Dutch despite the late Sultan's urging for Diponegoro to be the next Sultan. Being a devout Muslim, Diponegoro was alarmed by the relaxing of religious observance at his half brother's court in contrast with his own life of seclusion, as well as by the court's pro-Dutch policy. In 1821, famine and plague spread in Java. Hamengkubuwono IV died in 1822 under mysterious circumstances, leaving only an infant son as heir. When the year-old boy was appointed as Sultan Hamengkubuwono V, there was a dispute over his guardianship. Diponegoro was again passed over, though he believed he had been promised the right to succeed his half brother - even though such