A cellular organelle in the form of an extended appendage that is used for moving.

Bacterial flagella is composed of proteins attached to the cell wall, while eukaryotic flagella are complex structures that are within the plasma membrane.