with the Dutch, usually termed First Javanese War of Succession, dragged on for five years before the Dutch managed to install Pakubuwana. In August 1705, Pakubuwono I's retainers and VOC forces captured Kartasura without resistance from Amangkurat III, whose forces cowardly turned back when the enemy reached Ungaran. Surapati's forces in Bangil, near Pasuruan, was crushed by the alliance of the VOC, Kartasura and Madura in 1706. Jangrana II, who tended to side with Amangkurat III and did not venture any assistance to the capture of Bangil, was called to present himself before Pakubuwana I and murdered there by the VOC's request in the same year. Amangkurat III ran away to Malang with Surapati's descendants and his remnant forces but Malang was then a no-man's-land who offered no glory fit for a king. Therefore, though allied operations to the eastern interior of Java in 1706–08 did not gain much success in military terms, the fallen king surrendered in 1708 after being lured with the promises of household (lungguh) and land, but he was banished to Ceylon along with his wives and children. This is the end of Surabayan faction in Mataram, and – as we shall see later – this situation would ignite the political time bomb planted by Sultan Agung with his capture of Surabaya in 1625. With the installation of Pakubuwana, the Dutch substantially increased their control over the interior of Central Java. Pakubuwana I was more than willing to agree to anything the VOC asked of him. In 1705 he agreed to cede the regions of Cirebon and eastern part of Madura (under Cakraningrat II), in which Mataram had no real control anyway, to the VOC. The VOC was given Semarang as new headquarters, the right to build fortresses anywhere in Java, a garrison in the kraton in Kartasura, monopoly over opium and textiles, and the right to buy as much rice as they wanted. Mataram would pay an annual tribute of 1300 metric tons of rice. Any debt made before 1705 was cancelled. In 1709, Pakubuwana I made another agreement with the VOC in which Mataram would pay annual tribute of wood, indigo and coffee (planted since 1696 by the VOC's request) in addition to rice. These tributes, more than anything else, made Pakubuwana I the first genuine puppet of the Dutch. On paper, these terms seemed very advantageous to the Dutch, since the VOC itself