What causes a fungal nail infection don't keep your feet clean and dry. wear shoes that cause your feet to get hot and sweaty. walk around barefoot in places where fungal infections can spread easily, like communal showers, locker rooms and gyms. have damaged your nails. have a weakened immune system. More items... Feb 13, 2023