According to Einstein's general theory of relativity, space and time are not treated as separate entities, but rather as components of a unified four-dimensional structure known as spacetime. In this framework, spacetime is a continuum that incorporates both spatial dimensions (length, width, and height) and the dimension of time.
In general relativity, gravity is not seen as a force acting across space but rather as the curvature of spacetime caused by mass and energy. Objects with mass or energy, such as planets or stars, curve the surrounding spacetime, causing other objects to move along curved paths. The curvature of spacetime determines the behavior of objects under the influence of gravity.
In this sense, space and time are interconnected and cannot be considered as separate dimensions in the theory of general relativity. Instead, they are combined into a four-dimensional framework where the geometry of spacetime is affected by the distribution of mass and energy, and the motion of objects within it is determined by this geometry.
It's important to note that the notion of spacetime as a unified entity is a fundamental concept in general relativity, and it has been supported by various experimental confirmations and observations.