How does this medication work? What will it do for me? Ciclopirox belongs to the group of medications known as antifungals. It works by preventing certain types of fungus from growing and reproducing. The cream and lotion form of this medication are used to treat certain types of fungal infections of the skin.