Under Einstein's theory of general relativity, matter distorts the surrounding spacetime, so that space gets bent similarly to the way a sheet of fabric would bend if a bowling ball were dropped in the middle of the sheet.