Relativity describes gravity as the curvature of spacetime caused by mass, unlike Newtonian physics which describes it as a force between masses. According to Einstein's general relativity, massive objects like planets and stars warp the fabric of spacetime, and this curvature directs the motion of objects, creating gravitational attraction.