Gel electrophoresis is a technique used to separate DNA, RNA, and proteins based on their size and charge. During gel electrophoresis, a current is applied to move the molecules through a gel, with smaller molecules moving faster through the pores in the gel. This allows researchers to determine the size of unknown molecules by comparing their migration to molecules of known sizes. Key aspects of gel electrophoresis include preparing an agarose or polyacrylamide gel, loading samples and a ladder, running the current, and visualizing the separated molecules using dyes like ethidium bromide under ultraviolet light.