While sepsis is a leading cause of acute kidney injury in critically ill patients, the relationship between immune response and acute kidney injury in less severely ill patients with infection is not known. Here we studied the epidemiology, 1-year mortality, and immune response associated with acute kidney injury in 1836 hospitalized patients with community-acquired severe and non-severe pneumonia. Acute kidney injury developed in 631 patients of whom 329 had severe and 302 had non-severe sepsis. Depending on the subgroup classification, 16-25% of the patients with non-severe pneumonia also developed acute kidney injury. In general, patients with acute kidney injury were older, had more comorbidity, and had higher biomarker concentrations (interleukin-6, tumor necrosis factor, D-dimer) even among patients without severe sepsis. The risk of death associated with acute kidney injury varied when assessed by Gray's survival model and after adjusting for differences in age, gender, ethnicity, and comorbidity. This risk was significantly higher immediately after hospitalization but gradually fell over time in the overall cohort and in those with non-severe pneumonia. A significantly higher risk of death (hazard ratio 1.29) was also present in those never admitted to an intensive care unit. Hence acute kidney injury is common even among patients with non-severe pneumonia and is associated with higher immune response and an increased risk of death.