“…C. riparius larvae inhabit small ditches and streams with increased carriage of organic matter, mostly in agricultural areas or streams receiving waste effluents from urban areas (Armitage et al., ; Calle‐Martínez & Casas, ). Consequently, C. riparius populations need to adapt to their local pollutants, that is, pesticides (Müller et al., ), metals (Pedrosa, Cocchiararo, Bordalo, et al., ; Wai, Chong, & Ho, ), organic pollution (Vogt et al., ) and its effects on physicochemical conditions of the water body as decreased oxygen content or hydrogen sulphide levels. Results of the functional enrichment analysis indicate that candidates of local adaptation are significantly enriched for genes that can be associated with detoxification processes, as, for example transport processes, phosphorylation, epigenetic response, immunity and larval development (Table , Figure ).…”