In SEC, molecules are separated as they pass through a column filled with porous beads. These beads create a matrix that allows smaller molecules to enter the pores and take a longer path, while larger molecules bypass the pores and travel faster through the column. This differential migration leads to the separation of molecules based on their hydrodynamic volume.