Just to add a gloss to Umbran's very nice answer:
Special Relativity can be derived from the assumption that light travels at the same speed in every reference frame.
General Relativity can be derived from the same assumption, plus a second assumption that inertial mass and gravitational mass...