The theory of relativity is a set of two interrelated theories developed by Albert Einstein in the early 20th century, namely the special theory of relativity, which deals with the relationship between space and time, and the general theory of relativity, which deals with the relationship between gravity and the geometry of space-time.