Coffee has been linked to a reduced risk of dying from prostate cancer in a study of nearly 50,000 US men.
Those who drank six or more cups a day were found to be 20% less likely to develop any form of the disease - which is the most common cancer in men.
They were also 60% less likely to develop an aggressive form which can spread to other parts of the body.
But charities say the evidence, reported in the Journal of the National Cancer Institute, is still unclear.
They do not recommend that men take up coffee drinking in the hope of preventing prostate cancer.
The study looked at about 48,000 men in the US who work as health professionals.
Every four years between 1986 and 2006, they were asked to report their average daily intake of coffee.
During this 20-year period, 5,035 of the men were diagnosed with prostate cancer, including 642 fatal cases.
No difference was seen between caffeinated and decaffeinated coffee, suggesting caffeine itself was not the cause.
But even relatively small amounts of coffee - one to three cups per day - were found to lower the risk of lethal prostate cancer by 30%.
The researchers think there may be unknown compounds in coffee that protect against the disease.
Lead researcher Dr Kathryn Wilson, from the Harvard School of Public Health in Boston, said: "At present we lack an understanding of risk factors that can be changed or controlled to lower the risk of lethal prostate cancer.
"If our findings are validated, coffee could represent one modifiable factor that may lower the risk of developing the most harmful form of prostate cancer."
Commenting on the study, Dr Helen Rippon of The Prostate Cancer Charity, said other studies had not shown the link and the research evidence was still unclear.
She added: "Although this study is a welcome addition to our knowledge, it is far from definitive and we would not recommend men who are not already habitual coffee drinkers to become so in the hope of preventing prostate cancer.
"Heavy caffeine intake is associated with other health problems and men with benign prostate problems might well make urinary symptoms worse."
Yinka Ebo, senior health information officer at Cancer Research UK, said: "There's no need for men to start drinking gallons of coffee in an attempt to lower their prostate cancer risk.
"A number of other studies looking at coffee and prostate cancer have found that drinking coffee does not affect the risk of the disease, and this study only found a lower risk of advanced prostate cancer in men who drank more than six cups a day.
"We would need to see these results repeated in other large studies before we can be sure whether coffee consumption affects the risk of prostate cancer."