The belief that most directly explains the construction of the pyramids is:
They believed in an afterlife in which the preservation of the body was important.
The ancient Egyptians constructed pyramids as grand tombs to ensure that the deceased would be preserved for the afterlife, reflecting their beliefs in immortality and the importance of the afterlife.