When atoms are placed into liquids, their optical spectral lines corresponding to the electronic transitions are greatly broadened compared to those of single, isolated atoms. This linewidth increase can often reach a factor of more than a million, obscuring spectroscopic structures and preventing high-resolution spectroscopy, even when superfluid helium, which is the most transparent, cold and chemically inert liquid, is used as the host material1–6. Here we show that when an exotic helium atom with a constituent antiproton7–9 is embedded into superfluid helium, its visible-wavelength spectral line retains a sub-gigahertz linewidth. An abrupt reduction in the linewidth of the antiprotonic laser resonance was observed when the liquid surrounding the atom transitioned into the superfluid phase. This resolved the hyperfine structure arising from the spin–spin interaction between the electron and antiproton with a relative spectral resolution of two parts in 106, even though the antiprotonic helium resided in a dense matrix of normal matter atoms. The electron shell of the antiprotonic atom retains a small radius of approximately 40 picometres during the laser excitation7. This implies that other helium atoms containing antinuclei, as well as negatively charged mesons and hyperons that include strange quarks formed in superfluid helium, may be studied by laser spectroscopy with a high spectral resolution, enabling the determination of the particle masses9. The sharp spectral lines may enable the detection of cosmic-ray antiprotons10,11 or searches for antideuterons12 that come to rest in liquid helium targets.