Clomid and ttc

Lovely • IG: Plentifully.day TTC #4. Sept 2014 tubal reversal. Feb 2016 HSG: blocked tubes. May 2016 IVF: failed. Aug 2016 BFP turned to 4th loss
I've seen a few ladies post about it but don't know what it does, can someone give me the gist? Where would one get it and what's the difference between a man and woman taking it, please and thank you