to stop something that's harmful or dangerous from coming nearSynonym: fend off
ward off sth
Many people believe that vitamin C can ward off the common cold.
Did you know that garlic and crosses can be used to ward off Dracula and other vampires?