when you no longer feel confident or willing to do something:
In research, times of discouragement alternate with times of great achievement.
when you try to persuade someone not to do something, especially by making it seem difficult or bad:
the discouragement of smoking
something that discourages you