Clomid question?

I have never heard of clomid. What does it do? And if you are on it, how fast could you get pregnant? I'm having trouble figuring out my ovulation schedule since I have irregular periods.