While there are no direct references to masturbation in cave paintings or other prehistoric artifacts, the practice of masturbation by Bonobo chimpanzees, which share 98.4% percent of our DNA, provides some confirmation that masturbation has likely been practiced since the dawn of mankind.
