Although urban agriculture (UA) in the developing world may enhance nutrition and local economies, it may also lead to higher densities of mosquito breeding sites and, consequently, to increased transmission of malarial parasites. If targeted interventions against malaria vectors are to be successful in urban areas, the habitats that support Anopheles breeding need to be identified and detected. Mosquito breeding sites have recently been characterised, and the factors associated with productive Anopheles habitats identified, in market gardens of Abidjan, Côte d'Ivoire. Two surveys were conducted in seven vegetable-production areas, one towards the end of the rainy season and one during the dry season. A standardized methodology was used for habitat characterisation and the detection of Anopheles larvae and mosquito pupae. Overall, 454 and 559 potential mosquito-breeding sites were recorded in the rainy-season and dry-season surveys, respectively. In the rainy season, Anopheles larvae and mosquito pupae were found in 29.7% and 5.5% of the potential breeding sites, respectively, whereas the corresponding percentages in the dry season were 24.3% and 8.6%. The potential breeding sites in an agricultural zone on the periphery of Abidjan were those least likely to be positive for Anopheles larvae and mosquito pupae whereas 'agricultural trenches' between seedbeds were the sites most likely to be positive. In a spatially-explicit Bayesian multivariate logistic-regression model, although one out of every five such wells was also found to harbour Anopheles larvae, irrigation wells were found to be the least productive habitats, of those sampled, for pupae. In the study area, simple and cost-effective strategies of larval control should be targeted at agricultural trenches, ideally with the active involvement of local stakeholders (i.e. urban farmers and urban agricultural extension services).