High frequency surface wave radar is an important tool of the over horizon detection of sea and low-altitude targets. But when the high-frequency surface wave radar works at the beach, it suffers from strong sea clutter and electromagnetic interference. To improve its capability of anti-jamming and weak target detection, this paper studies the complementary codes signals associating with good autocorrelation function in the radar application.Firstly the characteristics of complementary codes and their construction methods are introduced, and then their ambiguity function is derived. The sub-codes (length are 2k ,k |