Gnathiids are a family of isopod crustaceans whose larvae feed on the blood of fish. During the day, infected parrotfish seek out cleaner fish to consume the parasites; however, at night they are relatively vulnerable to attack. Parrotfish overcome this vulnerability by secreting a mucus cocoon before sleeping which envelopes their bodies with a protective biopolymer that functions similar to a mosquito net. The mucus is secreted from large glands in the gill cavity and is composed of small
glycoproteins which are extensively cross-linked through
pyrosulfate bonds. This exopolymer net allows small molecules to permeate but prevents the parasitic gnathiids from entering. The process is thought to involve a combination of blocking odorants which the isopods use to target the fish and physically preventing them from approaching the fish. The nightly mucus secretion only consumes ~2.5% of the daily energy budget of the parrotfish which makes it a very efficient strategy.