hold someone or something at bay

hold (or keep) someone or something at bay

prevent someone or something from approaching or having an effect.
See also: bay, hold, something