LDH/TiO2 one-dimensional photonic crystals (1DPCs) covering the whole visible light range were fabricated by alternate deposition technique. The switchable color of LDH/TiO2 1DPCs can be achieved by repeating calcination–rehydration cycles, as a result of the associated changes in thickness and refractive index of the LDH slabs.