Plant parasitic nematodes, especially parasitic root-knot nematodes, are one of the most destructive plant pathogens worldwide. The control of plant root-knot nematodes is extremely challenging. Duddingtonia flagrans is a type of nematode-trapping fungi (NTF), which produces three-dimensional adhesive networks to trap nematodes. In this study, the pathogenicity and volatile organic compounds (VOCs) of the NTF D. flagrans against the plant root-knot nematode, Meloidogyne incognita, were investigated. The predatory process of D. flagrans trapping M. incognita was observed using scanning electron microscopy. Gas chromatography-mass spectrometry analysis of the VOCs from D. flagrans led to the identification of 52 metabolites, of which 11 main compounds were tested individually for their activity against M. incognita. Three compounds, cyclohexanamine, cyclohexanone, and cyclohexanol, were toxic to M. incognita. Furthermore, these three VOCs inhibited egg hatching of M. incognita. Cyclohexanamine showed the highest nematicidal activity, which can cause 97.93% mortality of M. incognita at 8.71 µM within 12 h. The number of hatched juveniles per egg mass after 3 days was just 8.44 when treated with 26.14 µM cyclohexanamine. This study is the first to demonstrate the nematicidal activity of VOCs produced by D. flagrans against M. incognita, which indicates that D. flagrans has the potential to biocontrol plant root-knot nematodes.