Ringworm (tinea) is a fungal infection caused by dermatophytes, which are a type of fungi that grow on skin, hair, and nails. Despite its name suggesting a worm, it has no relation to actual worms like tapeworms or earthworms. Bacteria cause different types of infections altogether.