We studied the predation behaviour of the "hunter fly" (Coenosia attenuata Stein) in the laboratory and greenhouse. In the laboratory, which was conducted at 25°C at 60-80% RH, with a 16L : 8D photoperiod, we examined the functional response of this species to three different pests, namely the sciarid fly (Bradysia sp.), the tobacco whitefly (Bemisia tabaci) and the leaf miner Liriomyza trifolii. In the greenhouse, we studied the population dynamics of the predator and its prey on pepper and water melon crops grown in southern Spain. Adult hunter flies were found to exhibit a type I functional response to adult sciarid flies and whiteflies, but a type II response to adult leaf miners. The type II response was a result of the greater difficulty in capturing and handling leaf miners compared to the other two species. The dynamics of the predator-prey interaction in the greenhouse revealed that the predator specializes mainly on adult sciarids and that the presence of the other prey can be supplemental, but is never essential for survival of the predator; this, however, is crop-dependent. The results on the dynamics of the predator-prey systems were obtained through a known population dynamics model with modifications.