To prevent something from happening.
To persuade someone not to do something; to discourage.
To distract someone from something.