The pyramids of Ancient Egypt were funerary structures. They were built over a period of 2,700 years, raging from the beginning of the Old Kingdom to the close of the Ptolemaic Period.