Gel electrophoresis is a process or a technique in which fragments of DNA are separated in terms of their sizes.
<em><u>The restriction enzyme is mixed with a DNA sample before the process. The restriction enzyme cut DNA at specific points into fragments which can then be separated based on their sizes on an agarose gel.</u></em>
When current is applied to the gel DNA move towards the positively charged electrode since DNA is negatively charged, with shorter fragments migrating faster through the gel in comparison with large fragments.