In gel electrophoresis, the DNA fragments of different sizes travel through the agarose gel, under the influence of electricity as DNA is negatively charged due to phosphate groups. The larger fragments are retarded back whereas smaller fragments travel faster towards the positive terminal. It leads to differential movement due to difference in size of DNA fragments.