A Black Hole is an object so dense that beyond its event horizon, escape velocity is greater than the speed of light.
The stellar-mass ones form when very massive stars collapse after a Supernova. At the centers of galaxies, you also get supermassive black holes.
They are not cosmic vacuum cleaners, but if something gets too close, gravity takes over hard.