It’s such a familiar scenario: After a day of (sweaty!) fun in the sun, your inner thighs are red, raw, and painful. Or when you get back from Zumba class, the skin under your sports bra straps is burning like crazy.

Yes, you’re experiencing chafing, a rash-like inflammation (medically known as intertrigo) that happens when moist skin rubs against other moist skin or clothing. It’s especially common in skin folds where sweat becomes trapped, such as the groin, the armpits, and under the breasts, and after walking or other forms of exercise.

And because raw, moisture-laden skin invites microbial overgrowth, a skin infection can follow. “Abrasion from moisture and friction makes microscopic cuts in the skin, and salt from sweat can exacerbate the irritation,” says dermatologist Dr Cameron Rokhsar. Want to avoid chafing this season, or at least lessen its severity? Follow this advice.

How to treat chafing

Cleanse with care

Wash inflamed areas with a gentle body wash or plain lukewarm water to soothe irritation from dried sweat and help control fungal growth. Pat dry, don’t rub—then, if you can, let the in flamed skin air out for a few moments to make sure all dampness is gone. “You might even dry the area with a fan or a blowdryer set on cool,” Dr Rokhsar says.

Calm it with ointments

Treat chafed areas twice a day with a zinc oxide ointment (often used in diaper rash products) or a balm to soothe the abrasion and restore damaged skin. If you need something stronger for a one-time incident, try applying a topical over-the-counter corticosteroid twice a day for three days, then taper off and quit before the two-week mark. “You don’t want to use steroids long-term due to potential side effects like thinning skin, stretch marks, and spider veins,” Dr Rokhsar says.

Consider medical options

If chafing is from excessive sweating, you may have a condition called hyperhidrosis, which can be treated with prescription-strength aluminum chloride antiperspirants, Botox injections in the problem spots, oral meds, or treatments that destroy sweat glands in the underarm area.

How to prevent chafing

Interrupt the friction

Applying a thick, slippery product like petroleum jelly on chafe-prone areas reduces friction and prevents abrasion. “Products with silicone, beeswax, or shea butter provide the same benefit,” says dermatologist Dr Temitayo Ogunleye. Don’t rely on oily lotions, which won’t last as long. “You want a product that you have to scoop out of the jar or is specially formulated for chafing,” Dr Ogunleye says. If needed, reapply after about three hours.

Try an antiperspirant

Over-the-counter antiperspirants contain aluminum chloride, which can block sweat in any moisture-prone skin fold, such as under the breasts or in the inner thigh or groin area—not just armpits! Apply a light layer and let it dry before any activity. Consider adding an antifungal powder to help further wick away moisture and protect against infections, but avoid putting it on or around orifices meant to be moist, like the vagina.

Wear protective clothing

Moisture-trapping cotton is not your friend when it comes to chafing-instead, choose synthetic fabrics like polyester or Lycra, which aren’t as absorbent. Look for garments that have flat seams or are seamless, and remove any interior tags; this also helps prevent skin irritation. Even when you’re not working out, wearing tight, moisture-wicking athletic gear like sports bras and compression shorts (slip them on under a flowy dress) can reduce friction and create a barrier between two skin surfaces or between skin and clothing.