Gel electrophoresis is a technique commonly used in laboratories to separate charged molecules like DNA, RNA and proteins according to their size.
Firstly, the sample DNA is cut into fragments by restriction endonucleases.
The DNA fragments beings negatively charged can be separated by forcing them to move towards the anode under an electric field through a medium / matrix.
Commonly used matrix is agarose which is a natural linear polymer of D- galactose and 3, 6-anhydro L- galactose which is extracted from the sea weeds.
The DNA fragments separates out ( revolve) according to their size because of the sieving property of agarose gel, hence, smaller the fragments size, the farther it will move.
The separated DNA fragments are visualized after staining the DNA with ethidium bromide followed by exposure to uv radiation.
The DNA fragments are seen as orange coloured bands.
The separated bands of DNA are cut out and extracted from the gel piece. This step is called elution.
The purified DNA fragments are used to form recombinant DNA which can be joined with cloning vectors.