Bacterial nanomachines represent remarkable feats of evolutionary engineering, showcasing intricate molecular mechanisms that enable bacteria to perform a diverse array of functions essential to persist, thrive, and evolve within ecological and pathological niches. Injectosomes and bacterial flagella represent two categories of bacterial nanomachines that have been particularly well studied both at the molecular and functional levels. Among the diverse functionalities of these nanomachines, bistability emerges as a fascinating phenomenon, underscoring their dynamic and complex regulation as well as their contribution to shaping the bacterial community behavior during the infection process. In this review, we examine two closely related bacterial nanomachines, the type 3 secretion system, and the flagellum, to explore how the bistability of molecular-scale devices shapes the bacterial eco-pathological life cycle.