Capillary electrophoresis is an analytical technique that separates charged particles using electricity and a very thin glass tube called a capillary. It works by applying a high voltage which causes particles to separate based on their size and charge as they migrate through the capillary at different speeds. The detector measures the particles as they pass by and generates an electropherogram plot showing the separation. Capillary electrophoresis provides fast, high resolution separation and is used in applications like DNA analysis, pharmaceutical quality control, and protein characterization.