Einstein quickly realized (or had known all along) that his new theory of gravity was really a theory of the cosmos. In 1917, he wrote a famous paper applying general relativity to the universe as a whole. Today that paper stands as the foundation for modern cosmology.