Electrophoresis is a method used to separate charged particles such as proteins and nucleic acids based on differences in their migration speed in an electric field. There are several types of electrophoresis including agarose gel electrophoresis, SDS-PAGE, isoelectric focusing, capillary electrophoresis, and two-dimensional electrophoresis. During electrophoresis, charged particles migrate through a gel or capillary towards an electrode with the rate of migration depending on factors like the particle's charge, size, and shape.