The separation in liquid chromatography is achieved by exploiting the differences in chemical or physical properties of the sample components, such as polarity, size, charge, or affinity for the stationary phase. These differences cause the components to interact differently with the stationary phase, resulting in their separation as distinct peaks.