Cloaca is the cavity in which both the intestinal and genitourinary tracts are emptied, also used for egg laying.