Some lizards have an escape mechanism in which they detach their tails to distract their predators. The tail will often come off and wriggle and act as a decoy so that the main body can escape. Usually, the tail grows back, though that depends upon the species I think.