During embryonic development in most vertebrates, pharyngeal pouches are seen. In the invertebrate chordates, the fishes and some amphibian larvae, the pharyngeal pouches become functioning gills, water passing into the mouth and the pharynx goes through gill slits, which are supported by gill arches.
In terrestrial vertebrates, that breath by lungs the pouches are modified for various purposes.