Carbon adsorbents are ideal materials for the treatment of organic pollutants in water, but there still exist challenges in regulating the pore structure and optimizing the adsorption properties. This work presents the preparation and application of lignin-derived carbon materials (ALUNC-0.5) with high specific surface area, multiscale pores, and abundant nitrogen doping sites achieved through coactivation using melamine, urea, and potassium carbonate. And the carbon source used is the biorefinery residue lignin. The incorporation of urea facilitated the uniform mixing of raw materials and enhanced the microporosity of the resulting carbon materials. In simulated wastewater treatment scenarios, ALUNC-0.5 demonstrated impressive actual adsorption capacities of up to 1276 and 1414 mg g −1 for methylene blue (MB) and tetracycline hydrochloride (TCH), respectively, while maintaining excellent reproducibility. This exceptional efficacy in pollutant removal can be attributed to the presence of multiscale pores and nitrogen doping sites, which effectively facilitate mass transfer and enhance pollutant adsorption through multiple mechanisms. The study presents a green and efficient activation method for the preparation of lignin carbon materials with outstanding adsorption performance, offering valuable insights into sustainable approaches for mitigating water pollution.