The gut begins embryonically as a simple, straight tube, fixed at both ends at the mouth and anus. Initially, the gut is the same length as the body, and is suspended from the back of the body cavity by a continuous sheet of tissue, the mesentery, that is also the same length as the gut. But then what happens is that the gut elongates, while the mesentery grows much more slowly. This difference in growth rates means that the gut is under compression along its length, restrained by the mesenteries, which causes it to periodically buckle.