The body of the earthworm is made up of many rings joined together. These rings are connected with the muscles which help to extend or shorten the body.
During movement the earthworm extends the front part of the body while its rear portion is fixed to the ground. Then it fixes the front part and releases the rear part. Then it shortens its bpdy and repeats the whole process. The body secretions of earthworm help in its movement.