One of the general defining characters of the Heteroptera is the presence of metathoracic scent glands (MTG). Using scanning electron microscopy, the morphology of the MTG of Dolycoris baccarum (Linnaeus 1758) (Heteroptera: Pentatomidae) was studied. The MTG belong to the diastomian type. The two glandular pores located between the mesothoracic and metathoracic coxae are associated with 'mushroom-like' structures. The MTG are composed of a reservoir and a pair of lateral glands is connected to the reservoir by a duct. A groove-like structure extends downwards from the ostiole. While this structure is long and wide, its ostiole is oval. Extracts of the volatile fractions from male and female MTG secretions were analysed by capillary gas chromatography-mass spectrometry (GC-MS) and exhibited a typical pentatomid composition. Seventeen chemical compounds were detected in female secretions, whereas 13 chemical compounds were detected in the male secretions. Most chemical compounds were similar between the sexes but were different in their quantities. In this regard, the compounds identified were investigated and the biological functions of the glandular secretions were discussed. In the analyses of the MTG of females of D. baccarum, tridecane (50.97%) was a major odour component and (Z,Z)-4,16-octadecadien-1-ol acetate (0.02%) was a minor odour component. In males, tridecane (50.80%) was a major odour component and 1,2-benzenedicarboxylic acid (0.02%) was a minor odour component.