How were the Egyptian pyramids built?

It is a common claim that the construction of the pyramids are a mystery and archaeologists have no real evidence to figure out how they were built. As a result, alternative histories offer elaborate theories to try and explain the pyramids.