Food moves inside the alimentary canal because of peristalsis. Alimentary canal has muscular walls. Due to this, the walls of the alimentary canal contract and relax alternatively to push the food in the forward direction or into the next organ of the canal.