Black is the color of mourning today because in ancient times, it was believed that the spirits of the dead could repossess the bodies of the living.
So, to disguise themselves from evil spirits, mourners painted their bodies black.
Later societies translated this custom into wearing black clothes and veils.