Displaying defensive posture. Using tail to lure predators to strike the tail instead of the head. Some species of salamanders can also detach tails at will and the detached tails will continue to automate.