The granule-dependent exocytosis pathway is an important mechanism to induce apoptosis by CD8(+) T cells and NK cells and involves lytic molecules such as perforin. In the current study, we investigated the perforin 1 gene (PRF1) as a candidate for multiple sclerosis (MS) susceptibility in the Spanish population. We genotyped three PRF1 single nucleotide polymorphisms (rs885822, rs10999426, and rs3758562) in 420 patients with MS and 512 controls. Associations of PRF1 polymorphisms with the disease were restricted to male patients with MS, and the finding was consistently observed at the allele, genotype, and haplotype levels. Gender-associated differences were validated in an additional replication cohort comprised of 292 MS cases and 300 controls. In addition, we identified minor risk haplotypes strongly associated with male patients having primary progressive MS (PPMS). Further characterization of male patients with PPMS carrying the risk haplotypes by means of gene expression microarrays revealed overrepresentation of the cell killing gene ontology category among downregulated genes in these patients compared with male patients with PPMS carrying protective haplotypes. Moreover, PRF1 mRNA expression levels were significantly lower in patients with risk haplotypes, and changes in perforin protein expression by CD8(+) T cells mirrored those observed in gene expression. These findings suggest a gender dimorphism in the PRF1 association with MS and point to the presence of a generalized defect in the expression of genes that code for proteins involved in cell killing in a subgroup of male patients with PPMS.