The concentration of intracellular nickel in Haemophilus influenzae is linked to its surface properties and cell-cell aggregation and biofilm formation.