Potiphar or Potifar (/ˈpɒtᵻfər/) is a person known only from the Book of Genesis's account of Joseph. Potiphar is said to be the captain of the palace guard and is referred in the Quran as Aziz. Joseph, sold into slavery by his brothers, is taken to Egypt where he is sold to Potiphar as a household slave. Potiphar makes Joseph the head of his household, but Potiphar's wife, who is not named in the Bible or in Christian tradition, is furious at Joseph for resisting her attempts to seduce him, and falsely accuses him of attempted rape. Potiphar casts Joseph into prison, from where he later comes to the notice of Pharaoh through his ability to interpret the dreams of other prisoners.
After Joseph's interpretation of Pharaoh's dreams and his subsequent appointment as overlord of Egypt, Joseph (renamed Zaphnath-Paaneah) married Asenath, the daughter of Poti-Pherah priest of On. Poti-Pherah may have been the same person as Potiphar, in which case Joseph would likely have been married to the daughter of the woman responsible for his false imprisonment.
The medieval Sefer HaYashar, a commentary on the Torah, gives Potiphar's wife's name as Zuleikha, as do many Islamic traditions and thus the Persian poem called Yusuf and Zulaikha from Jami's Haft Awrang ("Seven thrones"). Because of the Egyptian location wherein the scene is staged, it is not impossible to detect in this biblical tale also a more recent echo of the very old Egyptian fable of the two brothers Bata and Anpu.