Clotrimazole kills fungus by causing holes to appear in its cell membrane and the contents leak out. This kills the fungus and treats the infection