The invention provides a compound bactericide with bacteriostatic or bactericidal activity. The composition comprises, by weight, 40% to 50% of linalool, 18% to 25% of terpilenol, 8% to 15% of geraniol, 2% to 4% of beta-cyclocitral, 2.5% to 5% of nerol, 1% to 3% of myrcene, 1% to 3% of ocimene, 3% to 6% of ionone and 5% to 8% of 2H-beta-ionone. Antibacterial and bacteriostatic drug sensitivity tests show that the bactericide artificially prepared on the basis of natural essential oil components has a broad-spectrum inhibition effect on bacteria and fungi. The bactericide has bacteriostatic andbactericidal effects on bacteria (escherichia coli, bacillus subtilis, staphylococcus aureus, staphylococcus epidermidis and the like) and fungi (candida albicans, Schlechospora crassa, trichophytonrubrum, saccharomyces cerevisiae and the like), and particularly has an obvious effect on zoonosis. The bactericide can be applied to development of zoonosis infection and other sterilization products.