Definition of “discipline” - Learner’s Dictionary

discipline

verb [ T ] uk us /ˈdɪsəplɪn/
PUNISH

to punish someone:

[ often passive ] He was disciplined for missing a training session.
CONTROL

to teach someone to behave in a controlled way:

[ often reflexive ] You have to learn to discipline yourself.

(Definition of “discipline verb” from the Cambridge Learner's Dictionary © Cambridge University Press)