The present invention provides a nucleotide fragment of pathogenic single nucleotide polymorphism associated with ankylosing spondylitis, identified following genome-wide correlation analysis of the ankylosing spondylitis patient and healthy control population in large sample by an intensive genome-wide SNP chip. The nucleotide fragment is located at the site of rs17095830, wherein for the ankylosing spondylitis patients, the base as G is significantly more frequent than that of the healthy control; and the base as A at the site is significantly less than the healthy control. The base at the site of rs17095830 as G may be effective to aid diagnosis of the AS disease. Provided herein are also a method and kit for detecting the corresponding pathogenic single nucleotide polymorphism associated with ankylosing spondylitis, which enables early aided specific diagnosis of ankylosing spondylitis and has broad application prospects.