This iridescent effect is caused by the diffraction and interference of light passing through the ordered silica spheres that make up opal's structure. Small variations in the silica layers refract light into different colors.