In ancient Egypt during the Old Kingdom, pyramids were built as tombs for pharaohs. The first pyramid, the Step Pyramid, was constructed around 5,000 years ago. Pyramids were huge structures with interior rooms and courtyards that took many years to build. Cities grew around pyramids under construction to house workers and their families who were paid with food and clothing from the pharaoh. After completion, pyramids required guards and traps to protect the large tombs from thieves attracted by the wealth inside, though many tombs were still successfully robbed.