What is the cause of blackened teeth?

Darkening of teeth can be classified as exogenous or endogenous.
Common exogenous factors include pigmentation in food and medication, but also personal habits and preferences. People who like to smoke and drink strong tea can often see darker teeth. There are also endogenous factors that cause this, such as caries and pulp lesions.