The expression of antimicrobial peptides (AMPs) as the main humoral defense reactions of insects during infection by entomopathogenic nematodes (EPNs) and their symbiont is addressed herein. Three AMPs, attacin, cecropin, and spodoptericin, were evaluated in the fifth instar larvae of Spodoptera exigua Hübner (beet armyworm) when challenged with Steinernema carpocapsae or Heterorhabditis bacteriophora. The results indicated that attacin was expressed to a greater extent than either cecropin or spodoptericin. While spodoptericin was expressed to a much lesser extent, this AMP was induced against Gram-positive bacteria, and thus not expressed after penetration of Xenorhabdus nematophila and Photorhabdus luminescens. Attacin and cecropin in the larvae treated with S. carpocapsae at 8 hr post-injection (PI) attained the maximum expression levels and were 138.42-fold and 65.84-fold greater than those of larvae infected with H. bacteriophora, respectively. Generally, the ability of H. bacteriophora to suppress attacin, cecropin, and spodoptericin was greater than that of S. carpocapsae. According to the results, the expression of AMPs by Sp. exigua larvae against S. carpocapsae was determined in the 4 statuses of monoxenic nematode, axenic nematode, live symbiotic bacterium, and dead symbiotic bacterium. The expression of attacin in larvae treated with a monoxenic nematode and live bacterium at 8 and 2 hr PI, respectively, were increased to the maximum amount. Live X. nematophila was the strongest agent for the suppression of attacin. The expression of cecropin against monoxenic nematodes and live symbiotic bacteria at 8 and 4 hr PI, respectively, reached the maximum amount while the expression levels of attacin and cecropin for axenic nematodes were lesser and stable. The results highlighted that the ability of P. luminescens in AMPs suppression was much more than X. nematophila. The results also showed that the effect of symbiotic bacterium in suppressing attacin and cecropin expression was greater than that of a monoxenic nematode; this result provided deep insight into the expression pattern parallels and fluctuations of the main AMPs during nematode infection.