They say cancer-causing chemicals could build up in the prostate if men do not ejaculate regularly.
And they say sexual intercourse may not have the same protective effect because of the possibility of contracting a sexually transmitted infection, which could increase men's cancer risk.
They found those who had ejaculated the most between the ages of 20 and 50 were the least likely to develop the cancer.
The protective effect was greatest while the men were in their 20s.
"Masturbation is part of people's sexual repertoire.