Whether bacteria are in the planktonic state, free-swimming or freefloating in liquid, or in the biofilm state, sessile on surfaces, they are always subject to mechanical forces. The long, successful evolutionary history of bacteria implies that they are capable of adapting to varied mechanical forces, and probably even actively respond to mechanical cues in their changing environments. However, the sensing of mechanical cues by bacteria, or bacterial mechanosensing, has been under-investigated. This leaves the mechanisms underlying how bacteria perceive and respond to mechanical cues largely unknown. In this Review, we first examine the surface-associated behavior of bacteria, outline the clear evidence for bacterial mechanosensing and summarize the role of flagella, type-IV pili, and envelope proteins as potential mechanosensors, before presenting indirect evidence for mechanosensing in bacteria. The general themes underlying bacterial mechanosensing that we highlight here may provide a framework for future research.