Gravitational collapse is the process by which a massive object, such as a star or cloud of gas and dust, contracts under its own gravitational attraction. This contraction can lead to the formation of various celestial bodies and the release of tremendous amounts of energy.