The composition and compression of biofilms developed on ultrafiltration membranes determine hydraulic biofilm resistance.