In ancient Egypt, pyramids were built during the time of the Old Kingdom. Pyramids were tombs, royal tombs, where the ancient Egyptians buried their kings. Most pyramids were huge. They had rooms inside like store rooms, bedrooms, and even inside courtyards. Pyramids took many years to build.