Low fertility limits crop production on acidic soils dominating much of the humid tropics.Biochar may be used as a soil enhancer, but little consensus exists on its effect on crop yield. Here we use a controlled, replicated and long-term field study in Sumatra, Indonesia, to investigate the longevity and mechanism of the effects of two contrasting biochars (produced from rice husk and cacao shell, and applied at dosages of 5 and 15tha−1) on maize production in a highly acidic Ultisol (pHKCl3.6).Compared to rice husk biochar, cacao shell biochar exhibited a higher pH (9.8 vs. 8.4), CEC (197 vs. 20cmolckg−1) and acid neutralizing capacity (217 vs. 45cmolckg−1) and thus had a greater liming potential. Crop yield effects of cacao shell biochar (15tha−1) were also much stronger than those of rice husk biochar, and could be related to more favorable Ca/Al ratios in response to cacao shell biochar (1.0 to 1.5) compared to rice husk biochar (0.3 to 0.6) and nonamended plots (0.15 to 0.6).The maize yield obtained with the cacao shell biochar peaked in season 2, continued to have a good effect in seasons 3–4, and faded in season 5. The yield effect of the rice husk biochar was less pronounced and already faded from season 2 onwards.Crop yields were correlated with the pH-related parameters Ca/Al ratio, base saturation and exchangeable K. The positive effects of cocoa shell biochar on crop yield in this Ultisol were at least in part related to alleviation of soil acidity. The fading effectiveness after multiple growth seasons, possibly due to leaching of the biochar-associated alkalinity, indicates that 15tha−1 of cocoa shell biochar needs to be applied approximately every third season in order to maintain positive effects on yield.