Few studies have investigated the relationship between overall diet and the risk of prostate cancer. We examined the association between 3 diet quality indices-the Healthy Eating Index-2005 (HEI-2005), Alternate Healthy Eating Index-2010 (AHEI-2010), and alternate Mediterranean diet score (aMED)-and prostate cancer risk. At baseline, dietary intake was assessed in a cohort of 293,464 US men in the National Institutes of Health (NIH)-AARP Diet and Health Study. Cox proportional hazards regression was used to estimate hazard ratios. Between 1995 and 2006, we ascertained 23,453 incident cases of prostate cancer, including 2,251 advanced cases and 428 fatal cases. Among men who reported a history of prostate-specific antigen testing, high HEI-2005 and AHEI-2010 scores were associated with lower risk of total prostate cancer (for the highest quintile compared with the lowest, hazard ratio (HR) = 0.92, 95% confidence interval (CI): 0.86, 0.98, P for trend = 0.01; and HR = 0.93, 95% CI: 0.88, 0.99, P for trend = 0.05, respectively). No significant association was observed between aMED score and total prostate cancer or between any of the indices and advanced or fatal prostate cancer, regardless of prostate-specific antigen testing status. In individual component analyses, the fish component of aMED and ω-3 fatty acids component of AHEI-2010 were inversely associated with fatal prostate cancer (HR = 0.79, 95% CI: 0.65, 0.96, and HR = 0.94, 95% CI: 0.90, 0.98, respectively).