Ion exchange chromatography relies on a charged stationary phase that interacts with oppositely charged molecules in the sample. The stationary phase is typically made of a resin with either positively charged (anion exchange) or negatively charged (cation exchange) functional groups. When a sample is passed through the column, ions in the sample are attracted to the oppositely charged groups on the resin, allowing for separation based on their charge and affinity.