Pharaoh, (Arabic: فِرعون) or Firʿawn in Arabic, was the ruler of Egypt at the time of Prophet Moses (a). The Qur'an introduces him as a tyrant, who claimed to be the god of the people of Egypt. He enslaved the Israelites who had resided in Egypt at the time of Joseph (a).
In order to prevent the birth of Moses (a), he commanded that the male Israelite infants be killed immediately after birth.
However, despite all the sings and miracles that Moses (a) showed him, Pharaoh refused to accept Moses' (a) message and accused him of being a magician.
God punished Pharaoh and his followers with various disasters, but they continued their disobedience. Eventually, God miraculously delivered the Israelites and drowned Pharaoh and his troops in the sea.
The Word "Firʿawn"
Most lexicographers consider the word "Firʿawn" a Coptic word meaning crocodile. However, some scholars maintain that "Pharaoh", or "Bar-'a " or "Bar-'u" in its Coptic form, initially meant royal palace but gradually became an honorific title for the king himself. Some others consider "Pharaoh" simply a title for the Egyptian king at the time of Moses (a). According to others, it was a title for Amalek kings, or Amalek kings in Egypt. However, the majority opinion is that "Pharaoh" was a general title for Egyptian kings of the eighteenth dynasty of the twenty-nine dynasties of ancient Egypt.
The word "Fir'awn" appears in the Qur'an seventy-four times, all of which refer to the Pharaoh of the time of Moses (a).
The Qur'an introduces Pharaoh as a tyrant, who worshipped certain gods other than the One God. He himself claimed to be a god. The verse "I am your exalted lord"  indicates that he considered himself the god of the Egyptians.
According to the Qur'an, Pharaoh was an arrogant oppressor, who used to divide the people in order to strengthen his rule. He had a vizier called Haman, a group of high officials, and a powerful army, on whom he relied in his rule. Pharaoh regarded himself in control of the people's beliefs; he would imprison or severely punish those who believed in something against his will. For instance, when he found out that his wife had believed in Moses (a), he had her executed.
His Behavior towards the Israelites
According to the Qur'an, Pharaoh oppressed the Israelites; he killed their sons and enslaved their women. As to the reason why Pharaoh killed the Israelite boys, al-Suddi (d. 128/745), an early commentator of the Qur'an, reports a story, according to which Pharaoh had a strange dream, so he asked the priests to interpret his dream. The priests stated that the dream indicated the birth of an Israelite boy who would kill Pharaoh when he grows up. Thus, in order to prevent this fate, Pharaoh commanded that the Israelite male infants be killed.
However, according to some hadiths from Imam al-Baqir (a) and Imam al-Sadiq (a), the Israelites awaited the birth of Moses (a), who, according to the prophesy of Joseph (a), was to kill Pharaoh. The news of this belief reached Pharaoh, and one year the priests and magicians at his court informed him that the promised son would be born in that year. Thus, Pharaoh commanded the murder of all Israelite male infants immediately after birth.
Moses' Upbringing in Pharaoh's Palace
When Moses (a) was born, God inspired his mother to put him in an ark and cast the ark into the river. Thus, the water carried Moses to Pharaoh's people, who took him from the river. When Pharaoh's wife saw the baby, she asked Pharaoh, "Do not kill him; maybe he will benefit us, or we will adopt him as a son" . Some commentators have understood this verse as indicating that Pharaoh and his wife did not have any children.
In his youth, Moses (a) once came across an Israelite who was having a fight with a Coptic man. Moses (a) rushed to help the Israelite man and struck the Copt, who died immediately. After this incident, Moses (a) fled from Egypt towards Midian to escape Pharaoh's punishment.
Reaction to the Prophethood of Moses (a)
Upon his return to Egypt, Moses (a) was chosen by God as a prophet, given a number of "signs," and commissioned to go to Pharaoh, who had "rebelled," and to call him gently to the path of God .
Together with his brother Aaron, who was also chosen by God as a prophet to help him, Moses (a) went to Pharaoh and introduced himself as God's apostle and called Pharaoh to be wary of God  and release the Israelites.. However, Pharaoh mocked him and threatened to imprison him if he did not abandon his beliefs..
Moses (a) presented his miracles,. including the transformation of his staff into a snake,. to demonstrate his truthfulness, but nevertheless Pharaoh and his courtiers continued to deny his prophethood and accused him of being a magician..
Afterwards, Pharaoh called the skilled magicians of Egypt to prepare a similar work of wonder in the presence of people on the feast day. However, when Moses (a) presented his miracle, the magicians realized that it was not a human work, so they believed in God and in Moses (a) as His prophet. Pharaoh became furious at the magicians, accused them of being the disciples of Moses (a) who had conspired against him, and threatened to cut off their hands and feet alternately. However, the magicians persisted in holding on to their faith and said, "We will never prefer you to the manifest proofs which have come to us and [to] Him who originated us. Decide whatever you may. You can only decide about the life of this world" .
Pharaoh resumed killing the sons of those who followed Moses (a) and enslaving their women. He even decided to kill Moses (a), a measure with which some courtiers seem to have disagreed, especially "the believer of the family of Pharaoh," who had hidden his faith.
Pharaoh also commanded Haman to built a tower, which he could ascend and see the god of Moses. However, Allama Tabataba'i states that Pharaoh was a demagogue, who intended merely to show himself as an unbiased person.
The Punishments of the People of Pharaoh
According to the Qur'an, when the Copts, whom the Qur'an calls the family of Pharaoh, refused to believe in Moses (a), God afflicted them with famine for several years, but "whenever any good came to them, they would say, ‘This is our due.’ And if any ill visited them, they took it for ill omens attending Moses and those who were with him" .
God also afflicted them with various disasters such as flood, locusts, lice, frogs, and the transformation of Nile's water into blood. These disasters are described in the Qur'an as "distinct signs" ; that is, they appeared one after another and with intervals between them. Each time, the people of Pharaoh were plagued to the extent that they asked Moses (a) to pray to his Lord to remove the disaster, and in return they would believe in him and release the Israelites. However, when Moses (a) prayed and the disaster was removed, they broke their promise.
Drowned in the Sea
Since Pharaoh and his people rejected Moses (a) and refused to release the Israelites, God commanded Moses (a) to go out of Egypt with the Israelites at night, and promised him that He would drown Pharaoh and his troops. Moses (a) obeyed God's command, and when he reached the sea with his people, he struck the sea with his staff as God had commanded him, so the sea was divided and they pass through it. However, when Pharaoh and his troops followed the Israelite inside the sea, the water drowned them.
The Qur'an reports that when Pharaoh was drowning, he called out, "I believe that there is no god except Him in whom the Children of Israel believe, and I am one of those who submit [to Him]" , but God told him, "What! Now? When you have been disobedient heretofore and were among the agents of corruption?! So today We shall deliver your body so that you may be a sign for those who come after you." 
In the Bible
The Bible reports the story of the genocide of the Hebrew children, Moses' birth and his mother leaving him to the river, and the defeat of the magicians (albeit without mentioning their belief in God afterwards). It also mentions the story of the disasters with which the Copts were afflicted.
According to the Bible, two pharaohs were the contemporaries of Moses (a): one was the "Pharaoh of the Oppression," who was alive until the escape of Moses (a) to Midian, and the other one was the "Pharaoh of the Exodus," who ruled Egypt afterwards when Moses (a) was chosen as a prophet.
The Torah mentions the story of the drowning of Pharaoh and his troops, but does not mention anything about his profession of faith while he was drowning or about the preservation of his body by God.
Pharaoh in Historical Sources
There is disagreement among the scholars as to which pharaoh was the contemporary of Moses (a). The following Egyptian pharaohs have been suggested as the pharaoh or the two pharaohs of Moses' time:
- Ahmose I (1575 – 1550 BC)
- Amenhotep I (1575 – 1550 BCE)
- Thutmose III (1490 – 1436 BCE) and his son Amenhotep II (1436 – 1413 BCE)
- Akhenaten and Tutankhamun (1327-1348 BCE)
- Ramesses II (1290-1224 BCE) and Merneptah (1224 – 1214 BCE).
- Qur'an 7:127
- Ṭabāṭabāyī, al-Mīzān, vol. 8, p. 222.
- Qur'an 79:24
- Ṭabāṭabāyī, al-Mīzān, vol. 8, p. 223.
- Qur'an 28:4, Ṭabāṭabāyī, al-Mīzān, vol. 16, p. 8.
- Markaz farhang wa ma'ārif Qur'ān. Dāyerat al-ma'ārif qur'ān karīm, vol. 6, p. 470.
- Qur'an 26:57, Qur'an 28:39
- Ṭabāṭabāyī, al-Mīzān, vol. 8, p. 229.
- Ṭabāṭabāyī, al-Mīzān, vol. 19, p. 346.
- Qur'an 38:12
- Sabziwārī, Irshād al-adhhān, p. 458.
- Qur'an 28:9
- Qur'an 28:29-32, Qur'an 20:24,42-48, Qur'an 79:17
- Qur'an 7:104, Qur'an 20:47, Qur'an 26:16
- Qur'an 79:18,19
- Qur'an 7:105, Qur'an 20:47, Qur'an 26:17
- Qur'an 26:25-29
- Qur'an 7:106, Qur'an 26:31
- Qur'an 7:105-108, Qur'an 26:30-33
- Qur'an 7:109, Qur'an 10:76, Qur'an 20:56-57, Qur'an 23:48, Qur'an 26:34-35, Qur'an 28:36, Qur'an 79:21
- Qur'an 7:109-112, Qur'an 20:58-60
- Qur'an 7:113-122, Qur'an 26:43-50, Qur'an 20:70-76
- Qur'an 20:72
- Qur'an 7:127
- Qur'an 40:26
- Qur'an 40:28,29
- Qur'an 28:38
- Ṭabāṭabāyī, al-Mīzān, vol. 16, p. 27.
- Qur'an 7:130,131
- Qur'an 7:133
- Qur'an 7:134,135
- Qur'an 44:23,24
- Qur'an 7:136
- Qur'an 10:90
- Qur'an 10:91-92
- The material for this article is mainly taken from فرعون in Farsi WikiShia.