The present invention relates to a use of a compound having an acid pump antagonistic activity, a pharmaceutically acceptable salt thereof or a pharmaceutical composition thereof for the manufacture of a medicament for prevention or treatment of diseases in which abnormal gastrointestinal motility is involved. In addition, the present invention relates to the method of prevention or treatment including administering to a human or animal. The compound, the pharmaceutically acceptable salt, thereof, or pharmaceutical compositions containing them, may be used in combination with one or more second active agent. Further, the present invention relates to pharmaceutical compositions and kits comprising a compound having an acid pump antagonistic activity or a pharmaceutically acceptable salt thereof for the prevention or treatment of said diseases.