Visualize the setup: The gel is placed in a buffer solution, and electrodes are connected to create an electric field. DNA samples are loaded into wells at one end of the gel, and as the electric field is applied, DNA migrates through the gel towards the positive electrode.