A black hole happens when there is enough gravity that space gets pulled inwards somewhere, at at least the speed of light.
Gravity falls off with distance, and the distance where space is being pulled inwards at exactly the speed of light is called the "event horizon".
It has this name because speed of light is the speed of causality: events that happen further in, are "over the horizon" for you, they cannot causally influence you.