Personality traits can contribute to depression by influencing how individuals perceive and react to the world around them, how they cope with stress and adversity, and how they maintain social connections and relationships. These factors can all play a significant role in the development and maintenance of depressive symptoms.