Cancer can lead to infertility through direct effects on the reproductive organs or as a result of treatments such as chemotherapy, radiation therapy, and surgery. These treatments can damage the ovaries, testes, and other reproductive tissues, leading to reduced fertility or complete infertility. For instance, chemotherapy drugs can harm the ovarian reserve in women and decrease sperm production in men.