Cadmium telluride (CdTe) and cadmium zinc telluride (CdZnTe) have been regarded as promising semiconductor materials for hard X-ray and /spl gamma/-ray detection. The high atomic number of the materials (Z/sub Cd/=48, Z/sub Te/=52) gives a high quantum efficiency in comparison with Si. The large bandgap energy (Eg/spl sim/1.5 eV) allows us to operate the detector at room temperature. However, a considerable amount of charge loss in these detectors produces a reduced energy resolution. This problem arises due to the low mobility and short lifetime of holes. Recently, significant improvements have been achieved to improve the spectral properties based on the advances in the production of crystals and in the design of electrodes. In this paper we summarize 1) advantages and disadvantages of CdTe and CdZnTe semiconductor detectors and 2) the technique for improving energy resolution and photopeak efficiencies. Applications of these imaging detectors in future hard X-ray and /spl gamma/-ray astronomy missions are briefly discussed.