Three years of negotiations (1959–1962) led to a peace agreement that ended the conflict in Aceh, in which Aceh was restored as an autonomous province with special rights for Islamic law. Introduction of effective "fence-of-legs" method of encircling rebel mountain hideouts in 1959 succeeded in breaking the strong rebel grip over West Java's rural areas. On June 1962, Kartosoewirjo was captured on his hideout of Mount Geber near Garut. In captivity, Kartosoewirjo issued order for all his followers to surrender, after which he was quickly tried and executed. The last Darul Islam band in West Java surrendered on August 1962. Successive military operations also crushed the Darul Islam in South Sulawesi. On February 1965, its leader Kahar Muzakkar was killed in a military ambush in the interior of Southeast Sulawesi province, ending the Darul Islam insurgency in Indonesia.