Heavy metal ion contamination in water poses a significant risk to human health as well as to the environment. Millions of tons of agricultural wastes are produced from oil palm plantations which are challenging to manage. In this study, we converted palm kernel shells (PKS) from a palm oil plantation into activated carbon (AC) having a surface area of 1099 m2/g using phosphoric acid as an activator. The prepared material was characterized using BET, XRD, Raman, FESEM and FTIR analyses. The AC was applied for the treatment of heavy-metal-contaminated water, and different parameters; the pH, adsorbent dosage, contact time and metal ion concentrations were varied to determine the optimal conditions for the metal ion adsorption. Different kinetic models; the zeroth, first-order and second-order, and Freundlich and Langmuir isotherm models were used to determine the mechanism of metal ion adsorption by the AC. Under the optimized conditions, Cr6+ and Pb2+ were removed completely, while Zn2+ and Cd2+ were more than 80% removed. This is a greener approach in which an agricultural waste, PKS is converted into a useful product, activated carbon and subsequently applied for the treatment of heavy metal-contaminated water.