Toenail fungus is a bacterial infection which millions are afflicted with. Considering that poor hygiene and walking barefoot in moist and warm environments such as swimming pools and public showers are the main culprits which cause the fungal growth, simple changes in ones habits can eliminate any chance of getting infected. Make a habit of wearing footwear in damp public places, and do dry your feet well when you get out of the shower. Refrain from sharing footwear with others, do not wear the same socks for days on end, and take off sweaty socks the moment you finish your exercise routine.