whats clomid help for?

I am in a different country, and the pharmacy is selling clomid, I heard it helps to get pregnant, Yes I know talk to my doctor but I don’t have insurance right now and i have been ttc for 6 months and I want someone who can just explain who takes it , why and how do you you take it, please no judgey people its just a question