This protocol describes a Drosophila learning and memory assay called courtship conditioning. This classic assay is based on a reduction of male courtship behavior after sexual rejection by a non-receptive premated female. This natural form of behavioral plasticity can be used to test learning, short-term memory, and long-term memory.