The earliest known Egyptian pyramid is the Pyramid of Djoser which was built during the third dynasty. This pyramid and its surrounding complex were designed by the architect Imhotep, and are generally considered to be the world's oldest monumental structures constructed of dressed masonry.
By the time of the early dynastic period of Egyptian history, those with sufficient means were buried in bench-like structures known as mastabas.
The first historically documented Egyptian pyramid is attributed to the architect Imhotep, who planned what Egyptologists believe to be a tomb for the pharaoh Djoser. Amenhotep is credited with being the first to conceive the notion of stacking mastabas on top of each other — creating an edifice composed of a number of "steps" that decreased in size towards its apex. The result was the Step Pyramid of Djoser — which was designed to serve as a gigantic stairway by which the soul of the deceased pharaoh could ascend to the heavens. Such was the importance of Imhotep's achievement that he was deified by later Egyptians.
The most prolific pyramid-building phase coincided with the greatest degree of absolutist pharaonic rule. It was during this time that the most famous pyramids, those near Giza, were built. Over time, as authority became less centralized, the ability and willingness to harness the resources required for construction on a massive scale decreased, and later pyramids were smaller, less well-built and often hastily constructed.Long after the end of Egypt's own pyramid-building period, a burst of pyramid-building occurred in what is present-day Sudan, after much of Egypt came under the rule of the Kings of Napata. While Napatan rule was brief and ceased in 661 BC, the Egyptian influence made an indelible impression, and during the later Sudanese Kingdom of Meroe (approximately in the period between 300 BC–300 AD) this flowered into a full-blown pyramid-building revival, which saw more than two hundred indigenous, but Egyptian-inspired royal pyramid-tombs constructed in the vicinity of the kingdom's capital city