We report a strategy for simultaneous cobalt removal and organic waste decomposition by using mesoporous hydroxyapatite nanoparticles wrapped in uniform carbon layers (HA@C). The in situ formation of CoOH+-HA@C due to ion exchange greatly improved the degradation efficiency by at least one order of magnitude compared to free Co2+.