Co3O4 catalyzed carbonization of plastics into Co@C spheres via a one-pot approach, which shows high performance in photo-degradation of Congo red.