The present invention relates to methods of treating blepharitis and dry eye by inhibiting the binding ability of lid flora bacteria such as Staphylococcus aureus and Staphylococcus epidermidis, thus inhibiting biofilm formation and the increase in bacterial populations and densities that lead to quorum-sensing-gene activation and therefore, the production of inflammatory virulence factors.