The expression "hold/keep somebody/something at bay" is used to describe a situation where someone or something is being kept away or prevented from getting too close or causing harm. It can be used both literally and figuratively. For example, a person may hold a dog at bay by keeping it on a leash so that it does not attack someone. In a figurative sense, someone may hold their fears at bay by facing them head-on and not letting them control their actions.