The invention provides materials and method for controlling pests, in particular, nematodes. The invention also provides compositions comprising biosurfactants as pesticides.