When the Ishmaelites got to Egypt, they sold Joseph to a man named Potifar. Potifar was an important man in Egypt. He was boss over all the soldiers that guarded the government building. That was where the king worked.