This is tinea cruris which is a common fungal infection. It is treated with oral and topical antifungal medicines.
Next Steps
consult a dermatologist for detail prescription.
Health Tips
avoid sharing of soap towel and personal hygiene products.
wear loose cotton clothes.
wash your clothes separately.
avoid over the counter steroid creams.