Cloaca

In zoological anatomy, a cloaca is the posterior opening that serves as the only such opening for the intestinal, reproductive, and urinary tracts of certain animal species. All amphibians, birds, reptiles, and monotremes possess this orifice, from which they excrete both urine and feces, unlike placental mammals, which possess two or three separate orifices for evacuation.

The cloacal region is also often associated with a secretory organ, the cloacal gland, which has been implicated in the scent marking behavior of some reptiles, amphibians and monotremes.

Birds
In birds the cloaca is the terminal chamber of the gastrointestinal and urogenital systems, opening at the vent. Among falconers the word vent is also a verb meaning "to defecate". Excretory systems with analogous purpose in certain invertebrates are also sometimes referred to as "cloacae".

Birds also reproduce with this organ; this is known as a cloacal kiss. Birds that mate using this method touch their cloacae together, in some species for only a few seconds, sufficient time for sperm to be transferred from the male to the female. The reproductive system must be re-engorged prior to the mating season of each species. Such regeneration usually takes about a month. Birds generally produce one batch of eggs per year, but they will produce another if the first is taken away. For some birds, such as ostriches, cassowaries, kiwis, geese, and some species of swans and ducks, the males do not use the cloaca for reproduction but have a phallus. In those, the penis helps ensure that water does not wash away the male's sperm during copulation.

One study has looked into birds that use their cloaca for cooling (see urohidrosis).

Fish
Among fish, a true cloaca is present only in elasmobranchs (sharks and rays) and lobe-finned fishes. In lampreys and in some ray-finned fishes, part of the cloaca remains in the adult to receive the urinary and reproductive ducts, although the anus always opens separately. In chimaeras and most teleosts, however, all three openings are entirely separate.

Mammals
With a few exceptions noted below, mammals have no cloaca. Even in those that have one, the cloaca is partially sub-divided into separate regions for the anus and urethra.

The monotremes (egg-laying mammals) possess a true cloaca.
 * Monotremes and marsupials:

In marsupials (and a few birds), the genital tract is separate from the anus, but a trace of original cloaca does remain externally. This is one of the features of marsupials (and monotremes) that suggest their basal nature, as the amniotes from which mammals evolved possessed a cloaca, and the earliest animals to diverge into the mammalian class would likely have had this feature too.
 * Marsupials:

Most adult placental mammals have no remaining trace of the cloaca. In the embryo, the embryonic cloaca divides into a posterior region that becomes part of the anus, and an anterior region that has different fates depending on the sex of the individual. In females, it develops into the vestibule that receives the urethra and vagina, while in males it forms the entirety of the penile urethra.
 * Placentals:

However, the tenrecs and golden moles, small placental mammals native to Africa, retain a cloaca as adults.

Being placental animals, humans only have an embryonic cloaca, which is split up into separate tracts during the development of the urinary and reproductive organs. However, a few human congenital disorders result in persons being born with a cloaca, including persistent cloaca and sirenomelia (mermaid syndrome).
 * Humans:

Reptiles
Some species have modified cloaca for increased gas exchange. See Reptile Respiration. This is where reproductive activity occurs.

Cloacal respiration
Some turtles, especially those specialized in diving, are highly reliant on cloacal respiration during dives. They accomplish this by having a pair of accessory air bladders connected to the cloaca which can absorb oxygen from the water. Various fish, as well as polychaete worms and even crabs, are specialized to take advantage of the constant flow of water through the cloacal respiratory tree of sea cucumbers while simultaneously gaining the protection of living within the sea cucumber itself. At night many of these species emerge from the anus of the sea cucumber in search of food.