The theory of relativity encompasses Einstein's theories of special and general relativity.