Women
It was customary for most women in the ancient Near East, Mesopotamia, and the Greco-Roman world to cover their hair when they went outside the home. In biblical times, women covered their heads with veils or scarves. The unveiling of a woman's hair was considered a humiliation and punishment
Men
According to the description of the priestly garb in Exodus, the high priest wore a miter (miẓnefet), and the ordinary priests a hat (migba'at). It was generally considered a sign of mourning to cover the head and face
all together.
Jewish tradition requires men to cover the head as a sign of humility before God, and women, as evidence of modesty before men, although the Bible does not explicitly command either men or women to cover the head.