A chemical signal released by animals to alert others of potential danger or to communicate other information.