The core idea of general relativity is that mass and energy can curve spacetime. When a massive object, like a star or a planet, is present, it warps the fabric of spacetime around it. Other objects move along these curves, which we perceive as gravitational attraction. This concept is mathematically formulated in the Einstein Field Equations, which relate the curvature of spacetime to the distribution of mass and energy within it.