Amphibian populations have been declining worldwide, with global climate changes and infectious diseases being among the primary causes of this scenario. Infectious diseases are among the primary drivers of amphibian declines, including ranavirosis and chytridiomycosis, which have gained more attention lately. While some amphibian populations are led to extinction, others are disease-resistant. Although the host's immune system plays a major role in disease resistance, little is known about the immune mechanisms underlying amphibian disease resistance and host–pathogen interactions. As ectotherms, amphibians are directly subjected to changes in temperature and rainfall, which modulate stress-related physiology, including immunity and pathogen physiology associated with diseases. In this sense, the contexts of stress, disease and ecoimmunology are essential for a better understanding of amphibian immunity. This issue brings details about the ontogeny of the amphibian immune system, including crucial aspects of innate and adaptive immunity and how ontogeny can influence amphibian disease resistance. In addition, the papers in the issue demonstrate an integrated view of the amphibian immune system associated with the influence of stress on immune–endocrine interactions. The collective body of research presented herein can provide valuable insights into the mechanisms underlying disease outcomes in natural populations, particularly in the context of changing environmental conditions. These findings may ultimately enhance our ability to forecast effective conservation strategies for amphibian populations.This article is part of the theme issue ‘Amphibian immunity: stress, disease and ecoimmunology’.