Correction to: Nature Reviews Microbiology https://doi.org/10.1038/s41579-025-01211-9, published online 4 August 2025.

In the version of this article initially published, in Fig. 1, the labels for apocrine and eccrine sweat glands were mistakenly swapped. The error has been corrected in the HTML and PDF versions of the article.