Gas-exchange structures are critical for acquiring oxygen, but they also represent portals for pathogen entry. Local mucosal immunoglobulin responses against pathogens in specialized respiratory organs have only been described in tetrapods. Since fish gills are considered a mucosal surface, we hypothesized that a dedicated mucosal immunoglobulin response would be generated within its mucosa on microbial exposure. Supporting this hypothesis, here we demonstrate that following pathogen exposure, IgT(+) B cells proliferate and generate pathogen-specific IgT within the gills of fish, thus providing the first example of locally induced immunoglobulin in the mucosa of a cold-blooded species. Moreover, we demonstrate that gill microbiota is predominantly coated with IgT, thus providing previously unappreciated evidence that the microbiota present at a respiratory surface of a vertebrate is recognized by a mucosal immunoglobulin. Our findings indicate that respiratory surfaces and mucosal immunoglobulins are part of an ancient association that predates the emergence of tetrapods.