Chameleons change their skin color through specialized cells called chromatophores. These cells contain pigments that expand or contract, allowing the chameleon to manipulate the wavelengths of light reflected off their skin. By altering the arrangement of these cells, chameleons can display a wide range of colors and patterns for communication, camouflage, or thermoregulation.