Relativity is a theory developed by Albert Einstein that describes how the laws of physics are the same for all observers, regardless of their relative motion. It encompasses two theories: special relativity, which deals with the motion of objects in the absence of gravity, and general relativity, which includes gravity in the description.