The pyramids of Egypt fascinated travellers and conquerors in ancient times and continue to inspire wonder in the tourists, mathematicians, and archeologists who visit, explore, measure, and describe them.

Tombs of early Egyptian kings were bench-shaped mounds called mastabas. Around 2780 BCE, King Djoser's architect, Imhotep, built the first pyramid by placing six mastabas, each smaller than the one beneath, in a stack to form a pyramid rising in steps. This Step Pyramid stands on the west bank of the Nile River at Sakkara near Memphis. Like later pyramids, it contains various rooms and passages, including the burial chamber of the king.

The transition from the Step Pyramid to a true, smooth-sided pyramid took placed during the reign of King Snefru, founder of the Fourth Dynasty (2680–2560 BCE). At Medum, a step pyramid was built, then filled in with stone, and covered with a limestone casing. Nearby at Bahshur, construction was begun on a pyramid apparently planned to have smooth sides. About halfway up, however, the angle of incline decreases from over 51 degrees to about 43 degrees, and the sides rise less steeply, causing it to be known as the Bent Pyramid. The change in angle was probably made during construction to give the building more stability. Another great pyramid was built at Dahshur with its sides rising at an angle of somewhat over 43 degrees, resulting in a true, but squat looking pyramid.