The dietary inflammatory index is inversely associated with depression, which is minimally mediated by C-reactive protein.