Extracellular matrix (ECM) elasticity is perceived by cells via focal adhesion structures, which transduce mechanical cues into chemical signalling to conform cell behavior. Although the contribution of ECM compliance to the control of cell migration or division is extensively studied, little is reported regarding infectious processes. We study this phenomenon with the extraintestinal Escherichia coli pathogen UTI89. We show that UTI89 takes advantage, via its CNF1 toxin, of integrin mechanoactivation to trigger its invasion into cells. We identify the HACE1 E3 ligase-interacting protein Optineurin (OPTN) as a protein regulated by ECM stiffness. Functional analysis establishes a role of OPTN in bacterial invasion and integrin mechanical coupling and for stimulation of HACE1 E3 ligase activity towards the Rac1 GTPase. Consistent with a role of OPTN in cell mechanics, OPTN knockdown cells display defective integrin-mediated traction force buildup, associated with limited cellular invasion by UTI89. Nevertheless, OPTN knockdown cells display strong mechanochemical adhesion signalling, enhanced Rac1 activation and increased cyclin D1 translation, together with enhanced cell proliferation independent of ECM stiffness. Together, our data ascribe a new function to OPTN in mechanobiology.