When two black holes collide or merge to form an intermediate-mass black hole. When they collide, they produce ripples or waves throughout the space known as gravitational waves.