The protein tyrosine phosphatase N22 (PTPN22) gene encodes a lymphoid-specific phosphatase (LYP), a downregulator of T-cell activation. Because a functional PTPN22 polymorphism, C1858T, has been found to be associated with different autoimmune diseases, we aimed to elucidate the role of this variant in predisposition to achalasia. We performed a case-control study with 231 nonrelated Spanish patients of white ethnicity diagnosed with achalasia and in 554 healthy control subjects, all genotyped for PTPN22 C1858T using TaqMan chemistry. The frequency of the 1858T allele was higher in the achalasia patients than in the healthy controls (carriers of allele T vs CC: OR = 1.38, 95% confidence interval [95% CI] 0.88-2.16, p = 0.13). Moreover a different genotype distribution was found between female and male patients (carriers of allele T vs CC: OR = 2.06, 95% CI 0.96-4.42, p = 0.04) and also between female patients and controls (OR = 1.94, 95% CI 1.12-3.36, p = 0.01), but not between male patients and controls (OR = 0.94, 95% CI 0.50-1.77, p = 0.85). We conclude that the PTPN22 1858T allele is a susceptibility factor for Spanish women with achalasia.