@@@@Highlights •N, P co-doped mesoporous carbon was prepared from Cabbage waste by a simple method.•A high mesoporous ratio of 89.87% and a large SSA of 1400 m2/g were obtained.•PCC500 showed good adsorption performance for four antibiotics.•The chemisorption sites for antibiotics adsorption were revealed.