If you suspect black nails, you should not ignore this sign, but discuss the problem with your doctor as soon as possible. The wide lines underneath the nails could be a warning sign of skin cancer “melanoma.” In some cases, trauma, medication, fungal infection, and nail injury can also cause the nails to turn black.