The migrating motor complex is a distinct pattern of electromechanical activity observed in the gastrointestinal tract during periods of fasting. It consists of 4 phases and recurs every 1.5 to 2 hours. Phase 1 involves smooth muscle inactivity. Phase 2 involves increasing peristaltic contractions originating in the stomach. Phase 3 involves rapid, evenly spaced peristaltic contractions that allow undigested material to pass into the small intestine. Phase 4 is a transition period between phases 3 and 1. The migrating motor complex sweeps excess secretions and residual materials into the colon to prevent bacterial buildup and provide a cleansing function in the gastrointestinal tract.