Step 1: DNA is negatively charged and moves towards the positive electrode in electrophoresis.
Step 2: Smaller DNA fragments pass more easily through the agarose matrix, moving farther than larger ones.
Step 3: Therefore, separation is based on size: smaller = farther.