Refers to a state of being discouraged or disheartened.
El desalento que sentía después del rechazo fue difícil de superar.
The discouragement he felt after the rejection was hard to overcome.
El desalento que sentía después de la pérdida fue difícil de superar.
The discouragement I felt after the loss was hard to overcome.