Herein, a straightforward protocol was developed for the one-pot synthesis of N-doped lignosulfonate-derived carbons (NLDCs) with a tunable porous structure using natural amino acids-templated self-assembly strategy. Specifically, histidine was employed as a template reagent, leading to the preparation of 10-NLDC-21 with remarkable characteristics, including the large specific surface area (SBET = 1844.5 m2/g), pore volume (Vmes = 1.22 cm3/g) and efficient adsorption for atrazine (ATZ) removal. The adsorption behavior of ATZ by NLDCs followed the Langmuir and pseudo-second-order models, suggesting a monolayer chemisorption nature of ATZ adsorption with the maximum adsorption capacity reached up to 265.77 mg/g. Furthermore, NLDCs exhibited excellent environmental adaptability and recycling performance. The robust affinity could be attributed to multi-interactions including pore filling, electrostatic attraction, hydrogen bonding and π-π stacking between the adsorbents and ATZ molecules. This approach offers a practical method for exploring innovative bio-carbon materials for sewage treatment.