The process involves creating a gel made of agarose, a polysaccharide extracted from seaweed. This gel acts as a matrix through which molecules can migrate when an electric field is applied. The negatively charged molecules move toward the positive electrode, with smaller fragments traveling faster than larger ones due to less resistance within the gel matrix.