Abstract Pest‐regulating natural enemies often require crop and non‐crop habitats to persist and be effective. These habitats offer hibernation sites, alternative prey or floral resources but can also be complementary in when they provide resources. The relative contribution of these different habitats to the performance of pest‐regulating insects is largely unknown, since it is difficult to study empirically. Landscape‐based population‐dynamical modelling can fill this research gap. In this study, we modelled the dynamics of predatory hoverflies (Diptera: Syrphinae) and their aphid prey in a collection of habitats. These hoverflies are dependent on different habitats for different reasons. While their larvae predate on aphids, adult hoverflies require floral resources. Resources are often segregated in different habitats. In addition, they are only temporarily available in any habitat type. In our model, hoverflies move between different habitats and select where to feed and where to produce off‐spring based on optimal foraging considerations. The model represents habitats common in arable landscapes and their temporal availability of resources is parameterized based on field observations. The model shows that effective pest suppression will only occur in the presence of at least three different habitats, including two crops that provide prey resources at different times of the year. A woody habitat with shrubs and trees provide aphid prey very early and late in the season, whereas an early crop and a late crop cover the period in between. In addition, these habitats need to provide floral resources in the same period as aphids, for example by flower strips in the margins of crop fields or blossoming trees or shrubs in the woody habitat. Under the model assumptions, the best pest suppression is obtained when the woody habitats take up 6% to 10% of the landscape. In addition to yearly population fluctuations, also bi‐ or multi‐yearly cycles may occur, depending on the composition of the landscape. Synthesis and applications. Our model shows when an agricultural landscape is ‘complete’ for natural enemies (and for effective pest control). For this, it needs to contain multiple habitats that supply floral and prey resources in different periods of the year.