The theory of relativity was formulated by Albert Einstein. Albert Einstein, a renowned physicist, developed both the special theory of relativity (published in 1905) and the general theory of relativity (published in 1915). These groundbreaking theories revolutionized our understanding of space, time, and gravity. Einstein's work on relativity has had a profound impact on the field of physics and has been extensively validated by experimental evidence.