Imam Bonjol was a leader of the Padri movement in West Sumatra who founded the state of Bonjol. The Dutch initially signed an agreement with Bonjol in 1824 after struggling against Padri resistance. However, once the Diponegoro resistance in Java was suppressed, the Dutch renewed attacks to gain control of West Sumatra. Despite fighting bravely, Indonesian forces were eventually overwhelmed by the Dutch military. Imam Bonjol was captured multiple times but continued resisting, until the Dutch finally captured and exiled him in 1837, sending him to various islands where he eventually died in 1864 at age 92 in Sulawesi.