Bacterial flagella are whip-like structures that provide motility to bacteria, allowing them to navigate through their environment by rotating like a propeller. These structures are composed of a protein called flagellin and are anchored in the bacterial cell wall and membrane by a complex motor apparatus that uses proton motive force to drive rotation.