Increasing evidence supports that playing a musical instrument may benefit cognitive development and health at young ages. Whether playing an instrument provides protection against dementia has not been established. In a population-based cotwin control study, we examined the association between playing a musical instrument and whether or not the twins developed dementia or cognitive impairment. Participation in playing an instrument was taken from informant-based reports of twins' leisure activities. Dementia diagnoses were based on a complete clinical workup using standard diagnostic criteria. Among 157 twin pairs discordant for dementia and cognitive impairment, 27 pairs were discordant for playing an instrument. Controlling for sex, education, and physical activity, playing a musical instrument was significantly associated with less likelihood of dementia and cognitive impairment (odds ratio [OR] = 0.36 [95% confidence interval 0.13-0.99]). These findings support further consideration of music as a modifiable protective factor against dementia and cognitive impairment.