What was the purpose of the great pyramids?

The Giza pyramids were built in Giza, Egypt almost 3000 years ago by the ancient Egyptians and they were used as tombs for the pharaohs.