The ancient Egyptians were grouped in a hierarchical system. The most important person was the Pharaoh, then the vizier who advised the king, nobles and priests, the soldiers and scribes, the craftsmen, then the farmers and slaves.
The Egyptians did not take prisoners except in battle, those prisoners were known as prisoners of war. These people were usually forced to build giant structures for the Pharaohs.
Another type of worker was the unskilled worker, who was just a peasant that worked on large projects on the Pharaoh's land with lots of other peasants, usually around the flood season. Once they were done, they returned to their homes so that they could farm their own land.
The ancient Egyptians were superstitious and believed in gods and in the afterlife. The Pharaoh was thought to be a god on earth that should be worshipped. He had the power to do whatever he wanted, to make laws, declare war, and much, much more.