Chameleons change color through a specialized layer of cells in their skin called chromatophores. These cells contain different pigments that can expand or contract, allowing the chameleon to manipulate the wavelengths of light that are reflected off its skin. Additionally, chameleons can change color in response to temperature, light, mood, and social interactions.