The invention discloses a raticide, which comprises the following raw materials in parts by weight: 1.5-2.5 parts of brown sugar, 8-12 parts of sesame oil, 40-45 parts of corns, 0.8-1.2 parts of diphacinone sodium salt, 10-15 parts of rhizoma pinellinae praeparata, 2-4 parts of benzoin gum and 2-5 parts of plant extracts, namely water extracts of honeysuckle, folium artemisiae argyi and rabdosia lophanthide. A preparation method of the raticide comprises the following steps: heating 50-60 parts of water to 55-65 DEG C, adding the brown sugar, the sesame oil, rhizoma pinellinae praeparata, benzoin gum, the plant extracts and diphacinone sodium salt, uniformly stirring, then adding the corns, stirring for 10-15 hours, taking out the corns, and airing to obtain the raticide. At present, the corns have the drug property and can be placed in corners infested with rats to attract rats, and after eating the corns, rats can die without decaying and emitting abnormal taste, so that the environment-friendly effect is achieved.