Gravitational contraction is the process by which the gravitational force within a celestial body, such as a star or a planet, causes the object to collapse inward and decrease in size. This contraction is a fundamental source of energy that powers the luminosity and internal processes of stars, including the Sun.