Cilia and flagella are cell organelles that are structurally similar but different in length and functions.
The main function of flagella and cilia:
The motile cilia found in the lungs, respiratory tract and middle ear of a human body prevent dust and mucus in the airways and facilitate the movement of sperms and eggs.
Non-motile cilia known as primary cilia receive signals from nearby cells and act as antennae for the cells.
Flagella help in locomotion in prokaryotic and eukaryotic cells.
Flagella also act as sensory organs to detect temperature and pH changes.