Fragments of DNA after the action of restriction endonuclease can be separated by a technique known as gel electrophoresis. DNA fragments are negatively charged molecules they can be separated by forcing them to move towards the anode (positively charged) under electric field.