The invention discloses a compound medicament for treating both underground pests and plant pathogenic nematodes, which is composed of active ingredients, fillers and auxiliary agents. The active ingredients include sulfamidophos and component A, and the component A is chlorpyrifos , phoxim, triazophos, diazinon, imidacloprid, abamectin, trichlorfon, phorate, carbosulfan, cypermethrin, cis-cypermethrin, terbufos, isofenphos-methyl , Bacillus thuringiensis, Beauveria bassiana or entomopathogenic nematodes, the weight ratio of the two is 1:10-10:1. The present invention adopts the compound medicament for controlling subterranean pests and plant pathogenic nematodes with the above components, which can avoid repeated application of pesticides, reduce the amount of pesticides used, reduce the production cost of crops, reduce pesticide residues on crops, and reduce environmental pollution. degree.