Electrophoresis is a technique used to separate charged molecules such as proteins and nucleic acids based on their size and charge. It works by applying an electric field to encourage migration of molecules toward the positive or negative electrode, depending on their charge. There are several types of electrophoresis that use different supporting media like agarose gel, polyacrylamide gel, paper, or capillaries to separate molecules. Factors like voltage, temperature, buffer composition affect separation efficiency during electrophoresis.