In the present study, patients with ankylosing spondylitis and controls were genotyped for the IL-17A, IL-17F, IL-17RA, and IL-17RC polymorphisms to assess whether their genetic variants may be associated with susceptibility to the disease, clinical parameters, and anti-TNF treatment outcome in our Polish population. This evidence concerns the gene TNF and ankylosing spondylitis.