Albert Einstein's theory of relativity, formulated in the early 20th century, consists of two parts: special relativity and general relativity. Special relativity addresses the relationship between space and time, while general relativity extends this to include gravity's influence on spacetime. These theories revolutionized our understanding of the cosmos, providing a new framework for describing gravity, time dilation, and the nature of space.