The habit loop has four stages: cue, craving, response, and reward. Understanding these stages helps you break bad habits and create good ones.