Clomid

So my husband and I are doing our first round of <a href="https://glowing.com/glow-fertility-program">IUI</a> this month. He has low sperm count and low motility. I was also checked and everything’s fine with me but I’m the one that was prescribed the Clomid. Does anybody know why or how this works?