The gel electrophoresis allows the separation of DNA fragments according to their size. The gel used is added with a dye called Ethidium Bromide (EtBr). The dye intercalates within the bases of the DNA fragments. After the process, the DNA fragments can be visualized under the UV light as the EtBr shows fluorescence under the UV light.