Selection of oviposition sites by gravid females is a critical behavioural preference in the reproductive cycle of Anopheles gambiae, the principal Afrotropical malaria vector mosquito. Several studies suggest this decision is mediated by semiochemicals associated with potential oviposition sites. To better understand the chemosensory basis of this behaviour and identify compounds that can modulate oviposition, we examined the generally held hypothesis that suboptimal larval habitats give rise to semiochemicals that negatively influence the oviposition preference of gravid females. Dual-choice bioassays indicated that oviposition sites conditioned in this manner do indeed foster significant and concentration dependent aversive effects on the oviposition site selection of gravid females. Headspace analyses derived from aversive habitats consistently noted the presence of dimethyl disulphide (DMDS), dimethyl trisulphide (DMTS) and 6-methyl-5-hepten-2-one (sulcatone) each of which unitarily affected An. gambiaeoviposition preference. Electrophysiological assays across the antennae, maxillary palp, and labellum of gravid An. gambiaerevealed differential responses to these semiochemicals. Taken together, these findings validate the hypothesis in question and suggest that suboptimal environments for An. gambiaelarval development results in the release of DMDS, DMTS and sulcatone that impact the response valence of gravid females to directly modulate the chemical ecology of oviposition site selection.