Why did the Egyptians build pyramids?

The Egyptians built pyramids as monumental tombs for their pharaohs, who were considered gods on Earth. The pyramids were designed to house the pharaoh's body and possessions and ensure their safe journey to the afterlife. Egyptians believed in an afterlife and believed that proper burial and preservation of the body were essential for the soul to continue on. The pyramids were built to be massive, durable structures that showcased the pharaoh's power and divine status. Additionally, the pyramids were intended to serve as a focal point for religious and ceremonial activities, as well as a symbol of the pharaoh's authority and control over the land.