The invention discloses a medicine for treating impotence and a preparation method of the medicine. The medicine is prepared from the following raw materials in parts by weight: 15-30 parts of cornua cervi pantotrichum, 20-30 parts of rhizoma dioscoreae, 20-30 parts of herba epimedii, 10-16 parts of cortex cinnamomi, 10-20 parts of cortex eucommiae, 40-60 parts of dog meat, 40-50 parts of penis and testis of pig, 5-8 parts of fructus piperis, 40-60 parts of tremella fuciformis, 10-20 parts of auricularia auricula-judae, 15-30 parts of sesame seeds, 20-30 parts of Chinese chestnut, 15-30 parts of hippocampus, 40-60 parts of holothuria, 15-30 parts of radix ginseng, 40-60 parts of nidus collocaliae, 10-20 parts of folium allii tuberose, 30-40 parts of shrimps, 2-3 parts of table salt, 20-30 parts of silkworm chrysalis, and 15-30 parts of honey. The medicine has the functions of treating deficiency of the kidney, tonifying the body, nourishing essences, and enriching the blood, in addition, the materials are natural and are free of any side effects, and impotence can be effectively treated.