The aim of the present study was to determine the involvement of the median raphe serotonergic system in the effects of ketamine on anxiety behaviours and related memory. The effects of ketamine pretreatment (3 and 10 mg/kg, i.p.) on three types of fear-motivated behaviours, unconditioned one-way escape, conditioned avoidance and freezing were tested. Experiments were performed with the inhibitory avoidance apparatus in rats with ibotenic acid lesions of the median raphe nucleus. It was found that 10 mg/kg ketamine had an anxiogenic-like effect on one-way escape type of fear and anxiolytic-like effect on conditioned freezing-related fear; these effects were unaffected by median raphe lesions. Both ketamine doses impaired freezing-related fear memory. Ketamine (10 mg/kg) also produced an anxiolytic-like effect on avoidance type of fear and impaired avoidance memory. The median raphe lesions attenuated the anxiolytic action of the drug on the avoidance type of fear and prevented ketamine-induced avoidance memory impairment. These results suggest that the anxiolytic-like effect of ketamine on avoidance-type fear is mediated through the median raphe serotonergic system.