This invention is a method of preparing and detecting diagnostic chip of human papillomavirus gene. On the base of the chip there are 16 kinds of stylet which arrange in array, they consist of one general stylet, 15stylet subjected to HPV. There are 6, 11, 16, 18, 31, 33, 35, 39, 42, 43, 44, 45, 52, 56, 58 and so on 15 in total. We add a nucleic acid to the end of the atyle, irradiate the chip under the ultraviolet radiation for 5minute, fix the aryle to the surface of the chip, and construct to be diagnostic chip. PCR primer adapts 2-24 chain of primer. This invention has the virtue of quick, exactness, simple and convenient, special recognition, high information, it is prone to expand, and has high economic and social efficiency on clinic application.