In conclusion, piperine suppressed ethanol-induced gastric ulcers in vitro and in vivo via oxidation inhibition and improving gastric-protecting activity by regulating the Nrf2/HO-1 and MAPK signalling pathways. This evidence concerns the gene HMOX1 and gastric ulcer.