Gravity is caused by the warping of space-time. It just like a heavy ball falling in a net and causing a distortion of the net grid.