Creutzfeldt–Jakob disease is a rare, fatal, neurodegenerative disease caused by the accumulation of abnormally folded prion proteins. The common polymorphism at codon 129 (methionine/valine) in the prion protein (PRNP) gene is the most important determinant of genetic susceptibility. Homozygotes of either allele have a higher risk of sporadic Creutzfeldt–Jakob disease. Various studies suggest that this polymorphism is also involved in other forms of dementia. We studied the association between the codon 129 polymorphism of the PRNP gene and mild cognitive impairment in 3605 participants from the Rotterdam Study using logistic regression analyses. Subsequently, we studied the association between this polymorphism and incident dementia, including Alzheimer’s disease, in 11 070 participants using Cox proportional hazard models. Analyses were adjusted for age and sex. We found the prevalence of mild cognitive impairment to be higher for carriers of the methionine/methionine genotype (odds ratio, 1.40; 95% confidence interval, 1.11–1.78; P = 0.005) as well as for carriers of the valine/valine genotype (odds ratio, 1.37; 95% confidence interval, 0.96–1.97; P = 0.08). The codon 129 polymorphism was not associated with the risk of incident dementia or Alzheimer’s disease. In conclusion, we found a statistically significant higher prevalence of mild cognitive impairment in carriers of the methionine/methionine genotype in the codon 129 polymorphism of the PRNP gene within this population-based study. No associations were found between the codon 129 polymorphism and dementia or Alzheimer’s disease in the general population.