Black holes curve space and time around them, creating a gravitational field that affects the movement of objects nearby. When two black holes orbit each other, they create waves in the shape of space that follow their movement, eventually merging into a larger black hole that emits gravitational waves as it settles down.