In the general theory of relativity, the McVittie metric is the exact solution of Einstein's field equations describing a black hole or massive object immersed in an expanding cosmological spacetime. The solution was first fully obtained by George McVittie in the 1930s, while investigating the effect of the, then recently discovered, expansion of the Universe on a mass particle.