It is a fungus, like Burgess said. It is the same type of fungus as athlete's foot or jock itch.
Thus the scientific names of tinea pedis, tinea cruris and tinea corporis. Ringworm being tinea corporis.
You can get it the same way you get athlete's foot or jock itch. From the gym, the shower, etc. You can also get it from animals. If your dog has it, he will eventually lose his fur in those places where the fungus is growing.
It is best to get it diagnosed and treated early. Otherwise it can spread and become a biotch to get rid of.
Tinactin will work, as was suggested, but it is best to see a doctor and get a combination of ketoconazole and betamethasone (a steroid cream). That'll kill the **** out of it, quickly.
I believe I got it from a hotel room in Vegas back in Jan of '07. Got it on my lower leg and it spread to my left arm and my rib cage (near the left arm) while I was trying to treat it with tinactin. Went to the doctor and got the ketoconazole and betamethasone and it died a very quick death.
I've also been told that once you've had it, you will be predisposed to catching it again. Just like athlete's foot. It's best not to mess around and just kill it quick.