qnli question: How does flagellum function within the cell? sentence: The flagellum is a rotating structure driven by a reversible motor at the base that uses the electrochemical gradient across the membrane for power.