In CE, a thin capillary tube filled with an electrolyte solution is used to separate analytes. When an electric field is applied, charged molecules migrate at different speeds toward the electrode of opposite charge. The separation is primarily based on the differences in the electrophoretic mobility of the molecules, which depends on their charge-to-size ratio.