ward off

US /wɔːrd ˈɔːf/
UK /wɔːrd ˈɔːf/
"ward off" picture
1.

prevent someone or something unpleasant from harming or coming close to one

:
She carried an umbrella to ward off the sun.
He tried to ward off the attackers with a stick.