Patients with cancer have several risk factors for infection (CDI), but the impact of CDI on outcomes in this population needs elucidation. We analyzed the incidence of CDI and its impact on outcomes in patients with cancer using the National Hospital Discharge Survey (NHDS) database from 2001 to 2010. Diagnosis codes were used to identify patients with cancer and CDI events. Demographics, diagnoses, length of stay (LOS), and discharge information were abstracted. Multivariate linear and logistic regression models with weighted analysis were conducted to study CDI incidence and CDI-associated outcomes. Analyses were performed using SAS version 9.4. During the 10-year study period, 20.1 million discharges had a cancer diagnosis. CDI developed in 1.09% of patients with cancer versus 0.77% of patients without cancer (adjusted odds ratio [aOR], 1.28; 95% CI, 1.28-1.29;<.001). The incidence of CDI in patients with cancer increased during the 10-year study period (64.7 per 10,000 discharges in 2001-2002 to 109.1 in 2009-2010; <.001). In multivariable analysis, compared with patients with cancer without CDI, patients with cancer and CDI had a longer mean LOS (5.67 days; 95% CI, 5.39-5.94) and higher rates of in-hospital mortality (aOR, 1.18; 95% CI, 1.16-1.20) and discharge to a care facility (aOR, 1.74; 95% CI, 1.72-1.75; all <.001). In this national database, CDI incidence increased significantly in patients with cancer over the study period and was associated with prolonged hospitalization, increased mortality, and discharge to a care facility. Despite increased attention, CDI remained a serious infection and merits appropriate prevention and management.