Answer :
The answer is D. To serve as tombs for royalty and as homes for the next life. They built pyramids because they put mummified bodies (Only of wealthy people) in the tombs/pyramids with all their gold/riches/jewelry and for royalty as for the next life or hereafter.