Question: why edta is used in gel electrophoresis?
Answer: EDTA is a chelating agent. It chelates the Mg2+ ion which is required for enzyme DNAse as a cofactor. DNAse is an enzyme which cleaves DNA into small fragments. So by addition of EDTA, our DNA is protected from the enzymatic activity.