SDS, an anionic detergent, performs two key roles in protein electrophoresis. It denatures proteins by disrupting non-covalent interactions, unfolding them into linear chains. Additionally, it coats proteins with a uniform negative charge proportional to their size. This dual action ensures that separation during SDS-PAGE relies solely on molecular weight, eliminating influence from protein shape or intrinsic charge.