This work describes a simple behavioral paradigm that allows the analysis of aversive associative learning in adult fruit flies. The method is based on suppressing the innate negative geotaxis behavior due to the association formed between a specific environmental context and an electric shock.