Using a sled which carried a stone block and was attached with ropes to these wooden posts, ancient Egyptians were able to pull up the alabaster blocks out of the quarry on very steep slopes of 20 percent or more. After 2700 BC, the ancient Egyptians began building pyramids, until around 1700 BC. The first pyramid was erected during the Third Dynasty by the Pharaoh Djoser and his architect Imhotep. This step pyramid consisted of six stacked mastabas. The largest Egyptian pyramids are those at the Giza pyramid complex. Pyramids were built for religious purposes. The Egyptians were one of the first civilizations to believe in an afterlife. They believed that a second self called the ka lived within every human being. ... Three pyramids were built at Giza, and many smaller pyramids were constructed around the Nile Valley.