Nail fungus, also known as onychomycosis, is a condition caused by fungal organisms that thrive in warm and moist environments. It often begins as a small white or yellow spot under the nail tip and can gradually spread deeper, leading to discoloration, thickening, and brittleness.