The dun gene is a dilution gene that affects both red and black pigments in the coat color of a horse. The dun gene has the ability to affect the appearance of all black, bay, or chestnut-based horses by lightening the base body coat and suppressing the underlying base color to the mane, tail, legs, and primitive markings.