Gravitational contraction is the process by which a massive object, like a star, decreases in size due to the force of its own gravity pulling inward. This phenomenon plays a crucial role in stellar evolution, as it helps to create the conditions necessary for nuclear fusion to begin in the core of a star. As the star contracts, it heats up, leading to changes in temperature and pressure that are critical for sustaining nuclear reactions.