Particle-tracking microrheology investigates the viscoelasticity of materials. Here, the technique is used to determine the viscoelasticity, creep compliance and effective crosslinking roles of different matrix components of a bacterial biofilm. The matrix consists of polymeric substances secreted by the bacteria and its components determine biofilm structure and mechanical properties.