Special relativity addresses the physics of objects in inertial frames of reference, primarily focusing on the constancy of the speed of light and time dilation effects. General relativity, on the other hand, extends these principles to include gravity as a curvature in spacetime caused by mass and energy, affecting the motion of objects and light.