Duodenal ulcers are associated with gastric metaplasia in the duodenum, both at the ulcer margin and at more distant sites in the duodenal bulb. pS2 and human spasmolytic polypeptide (hSP) are secretory peptides expressed in gastric epithelial cells and in gastric metaplasia. As these peptides may be important in ulcer healing, this study investigated the possibility that the expression of pS2 and hSP is increased in gastric metaplasia at the margin of duodenal ulcers. Duodenal bulb biopsy specimens from 12 duodenal ulcer patients were assessed. Sections were immunostained with monoclonal antibodies for pS2 and hSP. Cytoplasmic stain intensities were measured by an image analysis system and expressed as integrated optical density (IOD) units, In situ hybridisation for pS2 and hSP mRNA was carried out on parallel sections. Duodenal sections were also stained with diatase periodic acid Schiff/alcian blue to localise areas of gastric metaplasia. pS2 antigen staining in the duodenum was restricted to surface epithelial cells, and hSP to acinar and ductular components of Brunner's gland. mRNA localisation corresponded to immunostaining cells. In gastric metaplasia, pS2 expression was greater at the ulcer margin than away from the ulcer, as judged by the intensity of antibody staining (mean IOD units (SEM), 20.6 (3.3) v 9.5 (3.0); p < 0.001). There was a trend towards greater hSP staining at the ulcer margin but this did not achieve statistical significance. These findings support the putative role of pS2 and possible hSP in mucosal healing and providy further evidence for an autocrine 'ulcer-gastric metaplasia-repair' loop involving these trefoil peptides.