Gravity, he figured, was a warping of space and time, and he came up with the equations that describe how the dynamics of this curvature result from the interplay between matter, motion, and energy.
NPR: Einstein: Relatively Speaking, a Complicated Life