Highly ordered transparent composite films of CdS and layered double hydroxides (LDHs) have been fabricated using a template synthesis method; the size of the CdS particles in the LDH host can be controlled by adjusting the length of time of the reaction with H(2)S.