To discourage someone greatly; to cause someone to lose hope or the will to continue; to thwart or minimize someone's ambitions.
To render someone powerless to act, to thwart someone.