Many of the pharmaceuticals and personal care products occurring in municipal sewage are ionizing substances, and their partitioning behaviour is affected by ionic interactions with solid matrices. In activated sludge systems, such interactions have currently not been adequately understood and described, particularly for zwitterionic chemicals. Here we present an assessment of the effects of pH and iron salt dosing on the sorption of ciprofloxacin onto activated sludge using laboratory experiments and full-scale fate modelling. Experimental results were described with Freundlich isotherms and showed that non-linear sorption occurred under all the conditions tested. The greatest sorption potential was measured at pH = 7.4, at which ciprofloxacin is speciated mostly as zwitterion. Iron salt dosing increased sorption under aerobic and, to a lesser extent, anoxic conditions, whereas no effect was registered under anaerobic conditions.