Learning Torah saves a person from the evil inclination, as our Sages said, ‘The Jewish people are so fortunate, when they are involved in Torah and good deeds they rule over their evil inclination, and if not, the evil inclination rules over them. This is because the evil inclination rules over a person in two ways, over his mind through distraction and vanities, and over his limbs by accustoming them to going against Hashem’s will. If a person is involved in Torah and good deeds he subjugates his mind and limbs to serve his Creator, and thereby prevents the evil inclination from ruling over his thoughts and actions.