Disclosed are compositions/formulations for topical use designed for the treatment of fungal infections of the nails, comprising antifungal compounds combined with keratolytic agents and with one or more cationic polymers having an adhesive activity towards the keratins of the nails. The compositions/formulations form a physical barrier on the surface of the keratin tissues which guarantees long-term adherence of the antifungal compounds to the keratin surface, providing a high gradient of concentration for penetration, and greater efficacy.