The pyramids were built by skilled workers who were paid a wage. Farmers were often drafted to help with pyramid construction during the flood season.
There are many theories about how the Ancient Egyptians actually built the pyramids. It is believed that large blocks of stone were transported along the river Nile to the Giza site. They were then moved into place using sledges and ramps.