In this paper, using the first principles method which base on density function theory(DFT), we calculated the structures and electronic properties of ground states of (CdSe)_n and (HgTe)_n(n=1~7) clusters with the generalized gradient approximation(GGA).