Anti-predator adaptation
![Anti-predator adaptation in action: the seal shark Dalatias licha (a–c) and the wreckfish Polyprion americanus (d–f) attempt to prey on hagfishes. First, the predators approach their potential prey. Predators bite or try to swallow the hagfishes, but the hagfishes have already projected jets of slime (arrows) into the predators' mouths. Choking, the predators release the hagfishes and gag in an attempt to remove slime from their mouths and gill chambers.[1]](/uploads/202412/21/Hagfish_Slime_Predator_Deterrence0754.jpg)


Anti-predator adaptations are mechanisms developed through evolution that assist prey organisms in their constant struggle against predators. Throughout the animal kingdom, adaptations have evolved for every stage of this struggle.
The first line of defence consists in avoiding detection, through mechanisms such as camouflage, living underground, or nocturnality. Alternatively, prey animals may ward off attack, whether by advertising the presence of strong defences in aposematism, by mimicking animals which do possess such defences, by startling the attacker, by signalling to the predator that pursuit is not worthwhile, by distraction, by using defensive structures such as spines, and by living in a group. Members of groups are at reduced risk of predation, despite the increased conspicuousness of a group, through improved vigilance, predator confusion, and the likelihood that the predator will attack some other individual.