To prevent something from happening.
To persuade someone not to do something; to discourage.
To distract someone from something.
To deter
To cause (something) to flee by frightening it.