The Egyptian pyramids are ancient pyramid-shaped masonry structures located in Egypt. As of November 2008, sources cite either 118 or 138 as the number of identified Egyptian pyramids. Most were built as tombs for the country's pharaohs and their consorts during the Old and Middle Kingdom periods.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. When the physical body expired, the ka enjoyed eternal life.