a succession was illegal under Islamic rules. This series of natural disasters and political upheavals finally erupted into full-scale rebellion. Fighting against the Dutch Dutch colonial rule was becoming unpopular among local farmers because of tax rises, crop failures and among Javanese nobles because the Dutch colonial authorities deprived them of their right to lease land. Diponogoro was widely believed to be the Ratu Adil, the just ruler predicted in the Pralembang Jayabaya. Mount Merapi's eruption in 1822 and a cholera epidemic in 1824 furthered the view that a cataclysm was imminent, eliciting widespread support for Diponegoro. In the days leading up to the war's outbreak, no action was taken by local Dutch officials although rumors of his upcoming insurrection had been floating about. Prophesies and stories, ranging from visions at the tomb of Banten's former Sultan Ageng Tirtayasa alleged to be the ghost of Sultan Agung (the first Sultan of Mataram, predecessor of the Yogyakarta and Surakarta sultanates) to Diponegoro's contact with Nyai Roro Kidul, spread across the populace. The beginning of the war saw large losses on the side of the Dutch, due to their lack of coherent strategy and commitment in fighting Diponegoro's guerrilla warfare. Ambushes were set up, and food supplies were denied to the Dutch troops. The Dutch finally committed themselves to controlling the spreading rebellion by increasing the number of troops and sending General De Kock to stop the insurgency. De Kock developed a strategy of fortified camps (benteng) and mobile forces. Heavily fortified and well-defended soldiers occupied key landmarks to limit the movement of Diponegoro's troops while mobile forces tried to find and fight the rebels. From 1829, Diponegoro definitively lost the initiative and he was put in a defensive position; first in Ungaran, then in the palace of the Resident in Semarang, before finally retreating to Batavia. Many troops and leaders were defeated or deserted. Capture and exile In 1830 Diponegoro's military was as good as beaten and negotiations were started. Diponegoro demanded to have a free state under a sultan and wanted to become the Muslim leader (caliph) for the whole of Java. In March 1830 he was invited to negotiate under a flag of truce. He accepted and met at the town of Magelang but was taken prisoner on 28 March despite the flag of truce. De Kock claims that he had warned several Javanese nobles to tell Diponegoro he