The process begins with the preparation of a polyacrylamide gel. Proteins are mixed with SDS and heated to denature them, allowing the SDS to bind uniformly. When the sample is loaded into the gel and an electric field is applied, the negatively charged proteins migrate towards the anode. The gel matrix acts as a sieve, allowing smaller proteins to move faster than larger ones, effectively separating them by size.