Background: Pneumonia is a common cause for hospitalization and excess mortality among persons with Alzheimer's disease (AD), but little research exists evaluating drug use as its risk factor.Objective: We investigated the association between opioid use and hospital-treated pneumonia among community dwellers with AD.Methods: This study was part of the Medication use and Alzheimer's disease (MEDALZ) cohort. We included all community dwellers newly diagnosed with AD during 2010-2011 in Finland with incident prescription opioid use (n=5,623) and age-, sex-and time since AD diagnosis-matched nonusers (n=5,623). Opioid use data, modelled from pharmacy dispensing data, and hospitaltreated pneumonia were retrieved from nationwide registers. Patients with active cancer treatment were excluded. Hazard models compared opioid users to nonusers, adjusting for comorbidities, socioeconomic position and other drug use.Results: Incident opioid use was associated with an increased risk of hospital-treated pneumonia compared to nonuse (adjusted HR, aHR 1.34, 95% CI 1.14-1.57). Highest risk was observed during the first two months of use (aHR 2.58, 95% CI 1.87-3.55). Compared to weak opioids, buprenorphine was not associated with a higher risk of pneumonia (aHR 1.20, 95% CI 0.83-1.76), but strong opioids were (aHR 1.84, 95% CI 1.15-2.97). The risk was higher for those using ≥50 morphine milligram equivalents (MME)/day (aHR 2.03, 95% CI 1.24-3.31), compared to using <50 MME/day. Conclusions: Opioid use was associated with a risk of hospital-treated pneumonia in a dosedependent manner among persons with AD. Risk-minimization strategies should be considered if opioid therapy is needed.