The sperm used for intrauterine insemination can be from either the partner or a donor. The choice depends on the specific fertility issue being addressed and the preferences of the couples involved. The sperm is specially prepared before the IUI procedure to enhance its chances of fertilizing an egg.