The present invention relates to use of an active ingredient selected from ginsenoside Rg1, its metabolites ginsenoside Rh1 and Ppt for preparing a medicament and a health care product for improving sexual function of male mammals, and for providing the effect of spermatogenesis. The present invention further relates to a pharmaceutical composition for improving sexual function of male mammals, and/or for providing the effect of spermatogenesis, which comprises at least one active ingredient selected from ginsenoside Rg1, its metabolites ginsenoside Rh1 and Ppt, and a pharmaceutically acceptable excipient.