The technique involves applying an electric field to a gel matrix. Molecules migrate through the gel at different speeds depending on their size and charge. Smaller molecules typically move faster and travel further than larger ones. The gel, usually made of agarose or polyacrylamide, acts as a sieve, allowing the separation of molecular mixtures.