The application of a synthesized carbon xerogel (RFX) for the adsorptive removal from water of ciprofloxacin (CPX), a widely used fluoroquinolones-group antibiotic for humans and animals, has been reported in this work. The carbon xerogel was characterized by N2 adsorption-desorption isotherms, FTIR, Raman spectroscopy, TPD studies, elemental analysis, determination of isoelectric point (pHIEP) and scanning electron microscopy (SEM). CPX adsorption experiments were conducted in batch mode, using results obtained with F400 commercial activated carbon for comparison purposes. CPX adsorption kinetics were well-described by the pseudo-second-order model for both adsorbents and by the Elovich model in the case of F400 activated carbon. Therefore, CPX equilibrium adsorption capacity values were of 457 and 72mgg-1 for RFX xerogel and F400 activated carbon, respectively. This significant difference can be attributed to the higher specific surface area and micropores volume values of F400 carbon; in this sense, this material led to a slower CPX kinetic adsorption. Also, the Dual-site Langmuir model best-described the experimental CPX adsorption isotherms in both cases. By the adsorption studies at different solution pH, it could be concluded that several mechanisms, e.g., hydrophobic and π-π interactions, and electrostatic forces highly influenced CPX adsorption capacity. Furthermore, adsorption tests using several environmentally relevant aqueous matrices have been accomplished. In this case, a competitive effect between the natural organic matter (NOM) and the target pollutant occurred in all the tested real matrices, decreasing CPX adsorption capacity, especially remarkable for F400 activated carbon. Finally, Density Functional Theory (DFT) has been used to elucidate the interactions between CPX and adsorbents, finding a high relevance of the π-π electron donor-acceptor interactions in which CPX acts as an acceptor.