Motilin is a peptide hormone primarily produced by the M cells of the small intestine, specifically in the duodenum and jejunum. Discovered in the 1970s, motilin plays a crucial role in regulating gastrointestinal motility. It is composed of 22 amino acids and is known for its ability to stimulate smooth muscle contractions, particularly during the interdigestive state.