There is solid epidemiological evidence that drinking coffee is associated with decreased mortality, mediated through lower risk for cardiometabolic disease. There is now additional evidence that coffee is associated with lower risk for dementia and higher cognitive performance. While both of those associations are based on longitudinal studies that can’t prove causation, they make it hard to argue that drinking coffee is detrimental. This is quite the turnaround from when coffee was widely considered dangerous.