Evolution of sexual reproduction
Sexually reproducing animals, plants, fungi and protists are thought to have evolved from a common ancestor that was a single-celled eukaryotic species. Sexual reproduction is widespread in eukaryotes, though a few eukaryotic species have secondarily lost the ability to reproduce sexually, such as Bdelloidea, and some plants and animals routinely reproduce asexually (by apomixis and parthenogenesis) without entirely having lost sex.
Source: Wikipedia — Evolution of sexual reproduction (CC BY-SA 4.0)