Agarose gel electrophoresis is a technique used to separate DNA fragments by size. It involves preparing an agarose gel by dissolving agarose powder in buffer solution and pouring it into a casting tray. Samples are loaded into wells in the gel and an electric current is applied, causing DNA fragments to migrate through the agarose at rates depending on their size. After running the gel, DNA bands can be visualized by staining with ethidium bromide and exposing the gel to UV light. Agarose gel electrophoresis has applications in analyzing PCR products and restriction enzyme digests.