Gravity is curved spacetime
Einstein joined space and time into one thing, spacetime. His general relativity says that mass and energy curve it, and we feel that curving as gravity. The Earth goes round the Sun because it follows the straightest path it can through the spacetime the Sun has bent.
