The wall of alimentary canal contains muscle layers. Rhythmic contraction and relaxation of these muscles pushes the food forward. This is called peristalsis, which occurs all along the gut.