Cosmology is the branch of metaphysics that deals with the nature of the universe and the cosmos as a whole. It explores questions about the origin, structure, and fate of the universe, its laws and constants, and the possible existence of other worlds or dimensions.