The process begins by preparing the gel and loading the sample into wells. An electric current is then applied across the gel. Molecules in the sample move at different speeds based on their size and charge, creating distinct bands that can be visualized using various staining techniques. In nanotechnology, this helps in analyzing the composition and purity of nanomaterials.