Prior to the pyramids, mastaba tombs were used for interment in ancient Egypt. These are usually formed of stone or mudbrick and have a flat roof, sloping sides, and a rectangular shape. Prominent figures and nobility interred themselves there.