This protocol describes a behavioral assay, based on the Barnes maze test, to study how instinctive defensive actions are modified by the knowledge of spatial environment.