The present invention relates to compositions and methods for controlling nematode infestation of plants or animals. In particular, the present invention provides vectors comprising sequences designed to control nematodes by RNA interference (RNAi) and transgenic plants transformed with such vectors.