Sampling bias refers to the systematic error introduced when a sample is not representative of the population being studied. It occurs when certain groups or individuals are over or underrepresented in the sample, leading to distorted conclusions about the population.