A dihydropyrimidinone derivative includes a compound having a chemical structure according to Formula 1:whereinZ is selected from CH2O, O, and N;X is selected from O and S; andR represents aryl, substituted aryl, heteroaryl, or substituted heteroaryl, wherein the substituted aryl or substituted heteroaryl have one or more substituents selected from the group consisting of halogen, alkyl, haloalkyl, alkoxy, haloalkoxy, nitro, hydroxyl, alkylthio, alkylamino, heteroaryl, aryloxy, haloaryloxy, arylthio, arylamino, and pharmaceutically acceptable salts thereof. The present subject matter also relates to a method of making a dihydropyrimidinone derivative, a method of treating a gastrointestinal disease, a method of treating an ulcer, a pharmaceutical composition, and a method of making a pharmaceutical composition.