Mating types are the microorganism equivalent to sexes in multicellular lifeforms and are thought to be the ancestor to distinct sexes. They also occur in multicellular organisms such as fungi.