Pyramids served as grand tombs for pharaohs. Egyptians believed these structures helped rulers in their journey to the afterlife, ensuring their immortality and continued rule beyond death.