Mesoporous carbon nanofibers were synthesized by the acid leaching treatment.
Mesoporous carbon nanofibers exhibited excellent performance for the both dyes.
The adsorption kinetic data for dyes follow the pseudo-second order kinetic model.
The experimental equilibrium for the two dyes was well fitted to the Langmuir model.
Mesoporous carbon nanofibers can be used as efficient sorbent in water treatment.