During the IUI procedure, sperm is collected from the male partner or a sperm donor and prepared. The prepared sperm is then inserted into the uterus through a thin, flexible tube called a catheter during ovulation.