The branch of philosophy that studies the basic nature of reality, including the nature of God, the soul, and the afterlife.