What was the Pyramid of Giza used for?

In the past the Great pyramids where used to guard the fourth dynasty Egyptian Pharaoh Khufu's temple.