A wastewater treatment system composed of an upflow anaerobic sludge blanket (UASB) reactor followed by a packed-bed reactor (PBR) filled with Sorbulite® and Polonite® filter material was tested in a laboratory bench-scale experiment. The system was operated for 50 weeks and achieved very efficient total phosphorus (P) removal (99%), 7-day biochemical oxygen demand removal (99%) and pathogenic bacteria reduction (99%). However, total nitrogen was only moderately reduced in the system (40%). A model focusing on simulation of organic material, solids and size of granules was then implemented and validated for the UASB reactor. Good agreement between the simulated and measured results demonstrated the capacity of the model to predict the behaviour of solids and chemical oxygen demand, which is critical for successful P removal and recovery in the PBR.