Eventually, a different king who had not known Joseph became ruler of Egypt.