What is clomid?

Rose
So I've seen this a couple of times and wasn't really sure what it was. My BF and I have been trying for almost a year and I have been taking Prenatals as well and trying to track my ovulation cycle with the tests and feel like nothing's happening. 
So with clomid do you need a prescription for it? Is it safe to take? Has it worked?