What is the reason for black teeth after drinking red wine?

Red wine contains pigments, and when consumed, they can be deposited on the surface of the teeth, causing them to darken. The same foods that contain pigment are chocolate, betel nut and coloured drinks, which are exogenous pigmentation.