Nail fungus is a common infection that can affect nails on the hands or feet, although more often than not, it tends to appear on toenails. Infections can happen in a few different ways: if water gets into your shoes and the feet are not dried quickly enough; if feet are allowed to get hot and sweaty; or if you walk barefoot in places where a fungal infection can spread easily (locker rooms, gyms etc.).