Electrophoresis is a technique used in laboratories to separate proteins, DNA, or RNA based on their size and charge. It involves applying an electric field to a gel matrix, causing molecules to migrate towards the opposite charge. This separation can be visualized by staining the molecules with specific dyes.