Agarose gel electrophoresis is a technique used to separate DNA fragments by size using an electrical current applied to an agarose gel. DNA samples are loaded into wells in the gel along with a DNA ladder standard. As the current is applied, smaller DNA fragments migrate farther through the pores of the gel than larger fragments. After running the gel, DNA bands can be visualized by staining with a dye and examining under UV light. This allows determination of whether PCR was successful in amplifying DNA fragments and their approximate size by comparison to the standard ladder.