Sex cells, also known as gametes, are specialized cells that are involved in sexual reproduction. In humans, the two types of sex cells are sperm (produced by males) and eggs (produced by females).
The main function of sex cells is to combine during fertilization to create a new organism with a unique combination of genetic material from both parents. Sperm and eggs each contain half of the genetic information needed to create a new individual, and when they unite, they form a zygote that will develop into a new organism.
Sex cells are produced through a process called meiosis, which ensures that each sex cell has only half of the genetic material of a normal body cell. This allows for genetic diversity and variation in offspring.