Trefoil factor (TFF) peptides, containing a 40-amino acid motif, including six conserved cysteine residues that form intramolecular disulfide bonds, are a family of mucin-associated secretory molecules mediating many physiological roles that maintain and restore gastrointestinal (GI) mucosal homeostasis. TFF peptides play important roles in response to GI mucosal injury and inflammation. In response to acute GI mucosal injury, TFF peptides accelerate cell migration to seal the damaged area from luminal contents, whereas chronic inflammation leads to increased TFF expression to prevent further progression of disease. Although much evidence supports the physiological significance of TFF peptides in mucosal defenses, the molecular and cellular mechanisms of TFF peptides in the GI epithelium remain largely unknown. In this review, we summarize the functional roles of TFF1, 2, and 3 and illustrate their action mechanisms, focusing on defense mechanisms in the GI tract.