General relativity is used to study the large-scale structure of the universe and to develop models of its evolution. Some of these models predict the existence of dark matter and dark energy, which are currently the subject of intense study in astrophysics.