
Defense
When the nest is damaged, the soldier termites defend the nest and workers rapidly repair any damage to the nest walls. The soldiers stand on alert on their legs and scan the area with their antennae. If the nest is attacked by ants, for example ''Oecophylla smaragdina'', the workers immediately escape by retreating into the nest, while the soldiers remain outside to defend the nest. They will first attempt to catch and pierce the attackers with their large mandibles. If this does not deter the attackers, some soldiers secrete a yellow liquid from a large gland that occupies a large proportion of their body. The liquid is forced out of the gland by contractions of the mandibular muscles which compress the walls of the gland. This liquid rapidly hardens on contact with air, producing a sticky substance that traps ants and other termites. The secretion also contains a pheromone which attracts more soldiers to fight the attackers. In some cases, the contractions are so violent that the termites rupture themselves. This form of suicidal altruism is known as autothysis.References:
Some text fragments are auto parsed from Wikipedia.