Why do DNA fragments move towards the anode during gel electrophoresis?

In gel electrophoresis, DNA fragments are negatively charged molecule. They can be separated by forcing them to move towards the anode under electric field through a medium/matrix.