A gamete-producing organ or cell found in many multicellular protists, algae and fungi, and in the gametophytes of plants.