It is literally brainwashing.
Brainwashing is the systematic effort to get someone to adopt a particular loyalty, instruction, or doctrine.