The physical form of diets has a marked impact on the development of gastric ulcers in pigs. Earlier studies showed effects of fine grinding and pelleting on the integrity of gastric mucosa as well as on local intragastric milieu. This study was conducted to evaluate the effects of dry or liquid feeding on intragastric milieu (DM and pH) in pigs. The 23 piglets were housed individually and fed with test diets and water ad lib for 6 wk. Both experimental diets [coarsely ground diet fed as mash (CM) vs. finely ground pelleted diet (FP)] were identical in ingredients (39.5% wheat, 34% barley, 20% soybean meal) and chemical composition and were either offered dry or in liquid (25% DM) form. At the end of the trial the animals were slaughtered; the stomach was removed and samples were taken from different localizations. Feeding diets dry or liquid had no effect on the pH (P > 0.05). The diet noticeably affected the gastric content. The FP diets resulted in a more liquid chyme (P < 0.05), and the intragastric pH did not differ between regions. Feeding CM caused marked effects of localization regarding pH (highest values: pars nonglandularis; lowest values: fundus). None of the pigs fed CM showed signs of gastric ulcers, but the score was markedly higher (P < 0.05) when pigs were fed FP. Therefore the predominant factor for development of gastric ulcers seems to be the structure (particle size) of the diet.