When an earthworm moves, the bristles at the rear end hold firmly to the ground, while the front end of the body stretches forward with the help of muscles. Then, the bristles under the front end anchor the front part and contract, while those under rear end relax. This process is repeated and the earthworm moves forward with the help of a wave of contractions of its body.