Cosmology is the study of the universe as a whole, including its origin, evolution, and current properties. General relativity is essential for understanding the large-scale structure of the universe and the behavior of massive objects such as galaxies and clusters of galaxies.