Polarizers function by filtering the light that passes through them. When unpolarized light, which consists of waves vibrating in all directions, passes through a polarizer, only the waves vibrating in one direction are allowed through. This filtered light can then interact with a sample in a controlled manner, revealing details that are not visible under normal light conditions.