Genetics plays a substantial role in a person's vulnerability to depression. Certain genetic variations may influence neurotransmitter function, neural connectivity, and stress response, affecting the risk of developing depression.