First of all, you should make sure that your infection is in fact ringworm. It is quite essential because sometimes people misjudge their infection, which is something else, and start thinking that it is ringworm. So, consult your family doctor or any other dermatologist to identify whether you have ringworm or not.
Ringworm spreads easily by sharing the same clothing or towels as it is highly contagious. Make sure that nobody uses your clothing and towel if you have this infection.
Doctors usually recommend the use of antifungal ointment including clotrimazole or Lamisil. You should gently rub these antifungal ointments on the infected area which will help in getting rid of it.
If you have ringworm on your scalp, then you should use a shampoo that contains Pyrithione zinc, which will help in treating the ringworm effectively.
You can also use topical antifungal ointments which help in clearing up the ringworm in less than a week. But you should continue using these antifungal ointments for at least two weeks in order to get best results.
You can prevent yourself from ringworm by not sharing your clothing, towel, bed sheets, sports equipment and razors with other people because all these things make you vulnerable to get infected with ringworm.