Nonsteroidal anti-inflammatory drugs (NSAIDs) induce gastric ulcers due to inhibition of prostaglandin production. Prostaglandins have an influence on physiological gastrointestinal motility, but the relationships between NSAID-induced gastric ulcer, gastrointestinal motility and motilin are unknown. Fifteen dogs were allocated randomly to three groups in which either gelatin, meloxicam or indomethacin was administered. Fecal occult blood and gastrointestinal motility were monitored continuously for 6 days. In addition, analyses of the plasma motilin concentration, gastrointestinal endoscopy and gastric emptying, and detection of motilin cells were performed. Gastrointestinal motility was disturbed in the indomethacin group, presenting as disappearance of interdigestive migrating contractions (IMCs) 3 days before gastric ulcers were detected. Delayed gastric emptying and hypermotilinemia were observed significantly more often in the indomethacin group compared with the other groups. Motilin cell-crypt/villi ratio in the indomethacin group significantly decreased in the duodenum and jejunum, compared with the other groups. No significant changes in any tests were observed in the meloxicam group, when compared with the gelatin group. These findings suggest that the disturbance of IMCs caused by hypermotilinemia, with changes in motilin cell distribution, and delayed gastric emptying induced by indomethacin may contribute to the development of gastric ulcers.