Cilia and flagella are hair-like structures that extend from the surface of many eukaryotic cells, functioning primarily in locomotion and sensory functions. Cilia are typically shorter and more numerous, moving in a coordinated back-and-forth motion, while flagella are longer and usually occur in fewer numbers, propelling cells with a whip-like motion. Both structures are composed of microtubules arranged in a specific pattern, playing critical roles in various biological processes across different organisms.